mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-29 06:25:30 -04:00
Hotfix for macOS detection
This commit is contained in:
parent
053a1bbbe2
commit
cc1d36a395
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue