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"
"os"
"path/filepath"
"runtime"
wiiudownloader "github.com/Xpl0itU/WiiUDownloader"
)
func main() {
// Check if user is running macOS
if os.Getenv("GOOS") != "darwin" {
if runtime.GOOS == "darwin" {
execPath, err := os.Executable()
if err != nil {
fmt.Println("Error:", err)