Auto Update with electron-updater (WIP) #808

Merged
alexliebowitz merged 36 commits from auto-update into master 2018-01-24 23:51:49 +01:00

36 commits

Author SHA1 Message Date
Alex Liebowitz
e98231fed3 Don't show auto-update dialog after decline on Win/Mac 2018-01-24 17:37:50 -05:00
Alex Liebowitz
76f6b1efa9 Remove remaining traces of logging code from main/index.js
We might need this later, but right now no logging is happening here.
2018-01-23 23:15:42 -05:00
Alex Liebowitz
eef3f6a816 Restore version number with -dev suffix (needed for new build process) 2018-01-23 20:09:30 -05:00
alexliebowitz
f302a0f92a
Merge branch 'master' into auto-update 2018-01-23 19:59:57 -05:00
Alex Liebowitz
8c0bf32fe5 Small changes to prepare auto update for release 2018-01-23 19:46:49 -05:00
Alex Liebowitz
daca49dc15 Add release notes to auto update dialogs 2018-01-23 19:39:17 -05:00
Alex Liebowitz
fbc143aaaf Reword "Upgrade on Restart" to "Upgrade on Close" 2018-01-23 19:22:02 -05:00
Alex Liebowitz
3e84907ac2 Version 0.3.0 [temp, for testing] 2018-01-23 10:40:03 -05:00
Alex Liebowitz
483809be1b Merge remote-tracking branch 'origin/master' into auto-update 2018-01-23 10:35:15 -05:00
Alex Liebowitz
37b5ec92e1 Change version to 0.2.0 [temp, for testing] 2018-01-17 08:03:51 -05:00
Alex Liebowitz
2d33767182 Change version to 0.1.0 [temp, for testing] 2018-01-17 07:27:40 -05:00
Alex Liebowitz
853bf2cfe7 Make video pause when you hit the "Upgrade Now" button on Mac/Win 2018-01-17 07:10:45 -05:00
Alex Liebowitz
863f7dc23b Make new dialogs behave correctly when video is playing 2018-01-17 06:10:11 -05:00
Alex Liebowitz
dccb06c13c Version 0.35 [temp, for testing] 2018-01-17 06:09:03 -05:00
Alex Liebowitz
f244f9035b Add back "Upgrade App" button on Mac/Win with different dialog on click 2018-01-17 06:09:02 -05:00
Alex Liebowitz
0c8ba50207 Update Auto Update-related copy 2018-01-15 18:38:35 -05:00
Alex Liebowitz
5a475f4ba4 Version 0.32 [temp, for testing] 2018-01-12 00:30:23 -05:00
Alex Liebowitz
fb8aee4632 Version 0.31 [temp, for testing] 2018-01-12 00:30:23 -05:00
Alex Liebowitz
cf3406f926 Remove icon from the Windows auto-update alert dialog shown on closing 2018-01-12 00:30:23 -05:00
Alex Liebowitz
3959d4aeee Make app restart after user approves update
Forgot to call quitAndInstall(). If you don't, it will still install
the update, but won't restart.
2018-01-12 00:30:23 -05:00
Alex Liebowitz
b03623eb68 Convert Windows update alert dialog to native dialog in main process
Maybe a bit less polished, but I couldn't find a way to prevent the
main window from closing that works on the current version of Electron,
and in general it was starting to get too complicated.
2018-01-12 00:30:23 -05:00
Alex Liebowitz
b08d96da1e Add alert before close after update is declined on Windows 2018-01-12 00:30:23 -05:00
Alex Liebowitz
bc15d24d66 Add ability to decline updates 2018-01-12 00:30:23 -05:00
Alex Liebowitz
acec4a745f Remove S3 upload from upload_assets.py 2018-01-12 00:30:23 -05:00
Alex Liebowitz
3957bf2afc Finish core UI for auto update 2018-01-12 00:30:23 -05:00
Alex Liebowitz
565f411986 Make app actually quit for update
Before, it was just minimizing and the app wouldn't even update because
electron-updater expects to be able to close the app.
2018-01-12 00:30:23 -05:00
Alex Liebowitz
24ced8ede7 More core UI for auto-update
We keep the old dialog flow on Linux, and on Windows and Mac we show a
single dialog when the file is downloaded.
2018-01-12 00:30:23 -05:00
Alex Liebowitz
5fff24b0fb Add "auto update downloaded" modal 2018-01-12 00:30:23 -05:00
Alex Liebowitz
e39470c3cc Copy dmg file into dist/mac for TeamCity
TeamCity expects the dmg to be in dist/mac, but in the new
electron-builder it's put directly in dist/ (in the long run the right
way to solve this is to update the TeamCity config).
2018-01-12 00:30:23 -05:00
Alex Liebowitz
67c3863bd6 Don't try to upload latest-linux.yml file on Linux
It's not being generated on Linux. I'm pretty sure this is a bug (or at
least undocumented behavior), but it's OK because Linux doesn't support
updates yet anyway.
2018-01-12 00:30:23 -05:00
Alex Liebowitz
bd8146a86c Add electron-publisher-s3 requirement
Needed for update system
2018-01-12 00:30:23 -05:00
Alex Liebowitz
b202de449e Upload assets for latest version to S3 in a separate directory
These are the assets that go in s3://releases.lbry.io/app/latest.
Included are the built asset used for updates (on Mac this is actually
a zip file, not the dmg), as well as the update metadata file for this
platform (latest.yml, etc.)

Also includes some refactoring in the update build script.
2018-01-12 00:30:23 -05:00
Alex Liebowitz
dade117476 Add updater settings to package.json 2018-01-12 00:30:23 -05:00
Alex Liebowitz
43297ce414 Add electron-log
The daemon and lbryum log all kinds of useful status/debug info, might
as well start doing that in the app too.
2018-01-12 00:30:23 -05:00
Alex Liebowitz
2031f36f7c Upgrade to electron-builder 19.45.5
It's not clear yet if this will be needed for the new upgrade process,
but we need to get on the latest version eventually anyway.
2018-01-12 00:30:23 -05:00
Alex Liebowitz
285c1ca7b6 Add electron-updater requirement and import 2018-01-12 00:30:23 -05:00