threat-dragon icon indicating copy to clipboard operation
threat-dragon copied to clipboard

v2 - provide AutoUpdate for desktop installer

Open jgadsden opened this issue 4 years ago • 6 comments

This issue has been migrated from: https://github.com/mike-goodwin/owasp-threat-dragon-desktop/issues/101

There is a branch for applying auto-updates using squirrel. It should be cross platform for Windows, MacOS and Linux. File app/app.js has been modified to not use autoupdate via PR OWASP/threat-dragon-desktop#102 because it was causing problems, but this modification can be undone when autoupdate is working:

//electron autoupdate
//Note: autoupdate has been disabled until this issue has been satisfied:
//      https://github.com/mike-goodwin/owasp-threat-dragon-desktop/issues/101
// app.run(['common', 'dialogs', 'electron', 'VERSION', require('./app/config.autoupdate')]);

jgadsden avatar Jun 03 '20 16:06 jgadsden

Use update-electron-app: https://www.electronjs.org/docs/tutorial/updates

jgadsden avatar Jun 19 '20 07:06 jgadsden

Auto update requires a signed application, which is proving a problem - see OWASP/threat-dragon#219 "TDD 1.3 not a trusted app for both Windows and Apple" raised by @lmcthbe

jgadsden avatar Sep 14 '20 12:09 jgadsden

Transferred to threat dragon repo

jgadsden avatar Jul 08 '21 07:07 jgadsden

This can probably be looked into again, as MacOS signing is done and Windows signing will be done in the very near future.

lreading avatar Aug 22 '21 20:08 lreading

With both MacOS and Windows signing in place, this can be considered for version 2.0. It is not a pre-requisite for the version 2.0 release, but it would be nice to have. It depends on having the electron wrapper in place, subject of #334 "Version 2.0: desktop version"

jgadsden avatar Dec 30 '21 18:12 jgadsden

It may be easiest to use electron's auto-updater: https://www.electronjs.org/docs/latest/tutorial/updates

jgadsden avatar Feb 07 '22 19:02 jgadsden

Decided to use electron/update-electron-app

jgadsden avatar Aug 18 '22 11:08 jgadsden