mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-06-02 00:08:23 -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"
|
"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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue