Create shortcuts on OSX, return AMD64 on M1 Mac

This commit is contained in:
idk
2022-02-10 20:20:02 -05:00
parent 049180c2da
commit 28179953b8
4 changed files with 52 additions and 6 deletions

10
main.go
View File

@ -47,14 +47,16 @@ func OS() string {
}
func ARCH() string {
// if OS() == "osx" {
// return ""
// }
switch runtime.GOARCH {
case "386":
return "32"
case "amd64":
return "64"
case "arm64":
if OS() == "osx" {
return "64"
}
return ""
default:
return "unknown"
}
@ -109,7 +111,7 @@ func main() {
} else if filename == "firefox" {
log.Println("Starting Firefox")
if *profile != "" {
*profile = filepath.Join(tbget.WORKING_DIR, "i2p.firefox")
*profile = filepath.Join(tbget.WORKING_DIR, "profile.firefox")
}
log.Println("Using profile", *profile)
}