Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds update app feature #72

Closed
wants to merge 1 commit into from
Closed

adds update app feature #72

wants to merge 1 commit into from

Conversation

zimbora
Copy link
Contributor

@zimbora zimbora commented Jul 13, 2024

Wallet update

How to use it:

  • Launch app with arg "-update"
  • Use UI app to update the wallet

How it works

If "-update" arg is received, software will check the latest version. If a new version is available it will download, create a backup and run it.
If update is requested through UI, the app will restart with "-update" arg.

Wallet UI

If a new version is available an icon will appear on topbar and for the first time that a new version is detected a dialog window will be shown to the user.

Method:

  • Release is downloaded from github DSW repo using github API.
  • SHA256 is compared between the dowloaded zip file and github file.
  • File is unzipped to the location where the program is, current directory is changed if needed and the program will restart again with the same command but without args.
  • All executable files are replaced with new ones.

@zimbora zimbora added the enhancement New feature or request label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants