trezor / trezor-suite

Trezor Suite Monorepo
https://trezor.io/trezor-suite
Other
714 stars 248 forks source link

Force auto-update option #11676

Open MiroslavProchazka opened 7 months ago

MiroslavProchazka commented 7 months ago

Investigate if we can force Suite to auto-update even when updaterId is not on the current StagingPercentage=xy pool.

You can force the auto-update via adjusting the ~/Library/Application\ Support/@trezor/suite-desktop/.updaterId file from xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx to xxxxxxxx-xxxx-xxxx-xxxx-00000000

The idea is to add button "Force update" in the settings that will adjust this file and force Suite to auto-update to the latest release on Github.

The file will be probably hidden in different folders throughout operating systems, so we would need to adjust the prompt accordingly.

I would recommend putting it behind Debug mode for the initial phase as well.

matejkriz commented 7 months ago

check this for a reference how it works https://github.com/electron-userland/electron-builder/blob/master/packages/electron-updater/src/AppUpdater.ts#L350