Describe the bug
macOS client is unable to update itself
To Reproduce
I run my client on macOS like this:
(base) [dkoski@dkoski-14 VPin-Studio-Client-macosx_aarch64 ]$ sh VPin-Studio-macosx_aarch64.sh
I have updated client & server many times: the server updated via the clicked button in the UI and I always downloaded the new client from GitHub. This time I noticed in the logs that it looks like it was supposed to update the client as well, but I found that it actually did not:
19-08 19:59:36.086 INFO [JavaFX Application Thread] d.m.v.u.UpdateDialogController - Updater resolved OS name 'Mac OS X'
19-08 19:59:36.089 INFO [Thread-48] d.m.v.c.u.Updater - Downloading https://github.com/syd711/vpin-studio/releases/download/3.2.0/vpin-studio-ui-jar.zip
19-08 19:59:37.089 INFO [Thread-47] d.m.v.c.u.Updater - /Users/dkoski/pinball/VPin-Studio-Client-macosx_aarch64/./vpin-studio-ui-jar.zip.bak download at 1%
19-08 19:59:37.090 INFO [Thread-47] d.m.v.u.UpdateDialogController - Client Update Download: 1
19-08 19:59:38.092 INFO [Thread-47] d.m.v.c.u.Updater - /Users/dkoski/pinball/VPin-Studio-Client-macosx_aarch64/./vpin-studio-ui-jar.zip.bak download at 20%
19-08 19:59:38.092 INFO [Thread-47] d.m.v.u.UpdateDialogController - Client Update Download: 20
19-08 19:59:39.095 INFO [Thread-47] d.m.v.c.u.Updater - /Users/dkoski/pinball/VPin-Studio-Client-macosx_aarch64/./vpin-studio-ui-jar.zip.bak download at 39%
19-08 19:59:39.095 INFO [Thread-47] d.m.v.u.UpdateDialogController - Client Update Download: 39
19-08 19:59:40.096 INFO [Thread-47] d.m.v.c.u.Updater - /Users/dkoski/pinball/VPin-Studio-Client-macosx_aarch64/./vpin-studio-ui-jar.zip.bak download at 75%
19-08 19:59:40.096 INFO [Thread-47] d.m.v.u.UpdateDialogController - Client Update Download: 75
19-08 19:59:40.839 INFO [Thread-48] d.m.v.c.u.Updater - Downloaded file /Users/dkoski/pinball/VPin-Studio-Client-macosx_aarch64/./vpin-studio-ui-jar.zip
19-08 19:59:41.097 INFO [Thread-47] d.m.v.u.UpdateDialogController - Client Update Download: 100
19-08 19:59:44.109 INFO [Thread-47] d.m.v.c.u.Updater - Written temporary bash: #!/bin/bash
sleep 4
unzip -o vpin-studio-ui-jar.zip
rm vpin-studio-ui-jar.zip
./VPin-Studio.sh &
19-08 19:59:44.110 INFO [Thread-47] d.m.v.c.u.Updater - Applied execute permissions to : /Users/dkoski/pinball/VPin-Studio-Client-macosx_aarch64/./update-client.sh
19-08 19:59:44.114 INFO [Thread-50] d.m.v.c.u.Updater - Exiting Studio
(base) [dkoski@dkoski-14 VPin-Studio-Client-macosx_aarch64 ]$ sh update-client.sh
unzip: cannot find or open vpin-studio-ui-jar.zip, vpin-studio-ui-jar.zip.zip or vpin-studio-ui-jar.zip.ZIP.
rm: vpin-studio-ui-jar.zip: No such file or directory
update-client.sh: line 5: ./VPin-Studio.sh: No such file or directory
Sure enough, there is no vpin-studio-ui-jar.zip anywhere that I can see (despite the logs indicating that it was downloaded to /Users/dkoski/pinball/VPin-Studio-Client-macosx_aarch64/./vpin-studio-ui-jar.zip, which is the current directory where the client runs).
I manually copy over the contents of the zip that I download and that does work fine.
Expected behavior
Expected:
the download of the new client would put a vpin-studio-ui-jar.zip in the local directory
the update script would work
Screenshots
No, but see logs above.
Desktop (please complete the following information):
OS: [e.g. iOS] macOS
Browser [e.g. chrome, safari]
Version [e.g. 22] macOS 15 (though I am sure it was the same on macOS 14)
Describe the bug macOS client is unable to update itself
To Reproduce
I run my client on macOS like this:
I have updated client & server many times: the server updated via the clicked button in the UI and I always downloaded the new client from GitHub. This time I noticed in the logs that it looks like it was supposed to update the client as well, but I found that it actually did not:
Sure enough, there is no
vpin-studio-ui-jar.zip
anywhere that I can see (despite the logs indicating that it was downloaded to/Users/dkoski/pinball/VPin-Studio-Client-macosx_aarch64/./vpin-studio-ui-jar.zip
, which is the current directory where the client runs).I manually copy over the contents of the zip that I download and that does work fine.
Expected behavior
Expected:
vpin-studio-ui-jar.zip
in the local directoryScreenshots
No, but see logs above.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.