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
2 changed files with 9 additions and 3 deletions
Showing only changes of commit 853bf2cfe7 - Show all commits

View file

@ -73,9 +73,9 @@ fi
# Build the app #
###################
if [ "$FULL_BUILD" == "true" ]; then
if $OSX; then
security unlock-keychain -p ${KEYCHAIN_PASSWORD} osx-build.keychain
fi
# if $OSX; then
# security unlock-keychain -p ${KEYCHAIN_PASSWORD} osx-build.keychain
# fi
yarn build

View file

@ -10,6 +10,8 @@ import { doAuthNavigate } from 'redux/actions/navigation';
import { doFetchDaemonSettings } from 'redux/actions/settings';
import { doAuthenticate } from 'redux/actions/user';
import { doBalanceSubscribe } from 'redux/actions/wallet';
import { doPause } from "redux/actions/media";
import {
selectCurrentModal,
selectIsUpgradeSkipped,
@ -76,6 +78,10 @@ export function doDownloadUpgradeRequested() {
return (dispatch, getState) => {
const state = getState();
// Pause video if needed
dispatch(doPause());
const autoUpdateDeclined = selectAutoUpdateDeclined(state);
if (['win32', 'darwin'].includes(process.platform)) { // electron-updater behavior