gustavokei / electron-game-updater

an electron game updater for windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with new launcher version detect.

antotor opened this issue · comments

Hello again!

I found another problem with use launcher. Sometimes, after build and upload new version of launcher - and start local launcher old version, launcher cant see new version. For example, i develop and build version 0,37. I start launcher with version 0,36. Launcher 0,36 cant see new version.

If i clean application cash (C:\Users%USER%\AppData\Roaming\Launcher - launcher download update correctly. Maybe clean cash automaticaly after start launcher?

Hello!

For autoupdate, please refer to the egu-config.json configuration, as already mentioned in the readme:

{
  "launcherVer": 1, // this must be a number and will be used to auto update your portable .exe if there is a higher version on "configFileRemote" field
  "launcherUrl": "https://url-to-your/launcher.exe", // updater will download and autoupdate if remote launcherVer is higher than local
  "configFileRemote": "https://url-to-your/egu-config.json", // remote url for egu-config.json (the updater will compare the launcherVer field)
}

I think numbers like 0,37 or 0,36 won't work since comparing these on javascript doesn't work well. You can try comparing 0.37 with 0.36 or just use integer numbers (1 2 3 4 etc) since it doesn't necessarily have to correspond to the actual launcher version.

It should autoupdate when your local egu-config.json has a lower version than the remote one.

I am sory for inaccurate description of problem. I use integer numbers vor version (currently - 37). But i draw 0.VERSION on frontend.

Update work correcly 9 from 10 versions. But sometimes, launcher not see changes in egu-config.json on the servers. Clean launcher cash in folder (/AppData/...) - solves this problem for next 5-9 updates.

Thanks for clarifying! I think I understand now.

I have implemented a workaround to bust cache on every request, make sure to update your project with the new changes.
However, if your files are cached on the server, you will have to make changes on your side.

Thank you!

You're welcome! Thanks again for pointing out another problem within the project.

Should you come across another one, feel free to open another issue.