One more possible fix.
This commit is contained in:
parent
bbe03c485e
commit
f283e93719
@ -70,9 +70,6 @@ func (l *Launcher) Launch(server_profile *datamodels.Server, user_profile *datam
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err.Error())
|
fmt.Println(err.Error())
|
||||||
}
|
}
|
||||||
if runtime.GOOS == "darwin" {
|
|
||||||
launch_bin = launch_bin + "/Contents/MacOS/Quake3-UrT.x86_64"
|
|
||||||
}
|
|
||||||
|
|
||||||
server_address := server_profile.Ip + ":" + server_profile.Port
|
server_address := server_profile.Ip + ":" + server_profile.Port
|
||||||
|
|
||||||
|
@ -81,9 +81,9 @@ func (op *OptionsProfile) browseForBinaryHelper() {
|
|||||||
}
|
}
|
||||||
} else if runtime.GOOS == "darwin" {
|
} else if runtime.GOOS == "darwin" {
|
||||||
// No separate arch thing here, macOS now 64bit only.
|
// No separate arch thing here, macOS now 64bit only.
|
||||||
if len(filename) > 0 && strings.Split(filename, ".")[1] != "app" && strings.Split(filename, ".")[0] != "Quake3-UrT" {
|
if len(filename) > 0 && strings.Split(filename, ".")[1] != "x86_64" && strings.Split(filename, ".")[0] != "Quake3-UrT" {
|
||||||
fmt.Println("Invalid binary selected!")
|
fmt.Println("Invalid binary selected!")
|
||||||
mbox_string := "Invalid binary selected!\nAccording to your OS, it should be Quake3-UrT.app."
|
mbox_string := "Invalid binary selected!\nAccording to your OS, it should be Quake3-UrT.app/Contents/MacOS/Quake3-UrT.x86_64."
|
||||||
m := gtk.NewMessageDialog(op.window, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, mbox_string)
|
m := gtk.NewMessageDialog(op.window, gtk.DIALOG_MODAL, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK, mbox_string)
|
||||||
m.Response(func() {
|
m.Response(func() {
|
||||||
m.Destroy()
|
m.Destroy()
|
||||||
|
Reference in New Issue
Block a user