syd711 / vpin-studio

Competition, table, and player management for VPins.
MIT License
28 stars 2 forks source link

update of macOS client always fails #386

Open gorgatron1 opened 3 weeks ago

gorgatron1 commented 3 weeks ago

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:

Screenshots

No, but see logs above.

Desktop (please complete the following information):

java --version
openjdk 19.0.2 2023-01-17
OpenJDK Runtime Environment Zulu19.32+13-CA (build 19.0.2+7)
OpenJDK 64-Bit Server VM Zulu19.32+13-CA (build 19.0.2+7, mixed mode, sharing)

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

karlsnyder0 commented 3 weeks ago

I have MacOS and will be happy to investigate this issue. Thank you so much for the thorough reporting of this issue.