edvin / fxlauncher

Auto updating launcher for JavaFX Applications
Apache License 2.0
713 stars 110 forks source link

Deployed to the local disk, and there seems to be an error in the progress #203

Open leewyatt opened 2 years ago

leewyatt commented 2 years ago

Hi, I like the fxlauncher project; But the following question, I am more confused, I hope to be answered; thank you!~

Video

https://www.youtube.com/watch?v=roQ19k8xi6Q

Test upgrade progress bar passed

image

When actually running, the program is not updated, but the progress bar fills up instantly, and the value of progress is far greater than 1

image

I don't know if this problem is related to deploying to the local disk

image

I wrote a dynamic progress bar, which is normal in the custom-ui test, manually set the progress from 0 to 1.0, and you can see the complete loading animation; However, when the program is actually running, the progress bar of the program's upgrade will instantly be greater than 1, become a large number, and continue to grow; I deliberately packaged an 8G program as the Ver2.0 version, so that the progress bar is still filled in an instant, the value of the progress is also greater than 1 in an instant, and soon reaches 1652700.. and is still increasing; I don't know if this is related to the fact that I did not deploy the program to the server, but deployed the program to the local disk; After waiting, the program will still be successfully updated, that is, there is a problem with the value of progress;