Skip to content

Commit

Permalink
allow for wine with the linux binary
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintenQVD0 authored Feb 18, 2024
1 parent e8bf404 commit 811fd69
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func main() {
},
// Add more validation rules as needed
}

func getIPAddressKey() string {

Check failure on line 55 in main.go

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04, 1.21.4, linux, amd64)

syntax error: unexpected getIPAddressKey, expected (

Check failure on line 55 in main.go

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04, 1.21.4, linux, arm64)

syntax error: unexpected getIPAddressKey, expected (

Check failure on line 55 in main.go

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04, 1.21.4, windows, amd64)

syntax error: unexpected getIPAddressKey, expected (

Check failure on line 55 in main.go

View workflow job for this annotation

GitHub Actions / Build (ubuntu-20.04, 1.21.4, windows, arm64)

syntax error: unexpected getIPAddressKey, expected (
// Check if PUBLIC_IP environment variable exists and is not empty
val, ok := os.LookupEnv("PUBLIC_IP")
Expand Down Expand Up @@ -215,7 +215,12 @@ func main() {
case "windows":
osFolder = "WindowsServer"
case "linux":
osFolder = "LinuxServer"
// Check if the WINEPREFIX environment variable exists
if _, winePrefixExists := os.LookupEnv("WINEPREFIX"); winePrefixExists {
osFolder = "WindowsServer"
} else {
osFolder = "LinuxServer"
}
default:
fmt.Println("Unsupported operating system")
return
Expand Down

0 comments on commit 811fd69

Please sign in to comment.