Hotfix for macOS detection

This commit is contained in:
Xpl0itU 2023-07-20 13:48:38 +02:00
parent 053a1bbbe2
commit cc1d36a395

View file

@ -4,13 +4,14 @@ import (
"fmt" "fmt"
"os" "os"
"path/filepath" "path/filepath"
"runtime"
wiiudownloader "github.com/Xpl0itU/WiiUDownloader" wiiudownloader "github.com/Xpl0itU/WiiUDownloader"
) )
func main() { func main() {
// Check if user is running macOS // Check if user is running macOS
if os.Getenv("GOOS") != "darwin" { if runtime.GOOS == "darwin" {
execPath, err := os.Executable() execPath, err := os.Executable()
if err != nil { if err != nil {
fmt.Println("Error:", err) fmt.Println("Error:", err)