Modify AutoUpdater behavior on macOS.

The AutoUpdater requires that macOS builds be code signed. That is currently not possible.
As a workaround, the autoupdater on mac will now alert users that an update is available and give the option to download the file directly from GitHub.
Closes #16.
This commit is contained in:
Daniel Scalzi
2018-11-18 21:51:48 -05:00
parent 11cb9e6c28
commit acd6143d30
7 changed files with 23 additions and 3 deletions

View File

@@ -47,6 +47,12 @@ if(!isDev){
break
case 'update-available':
loggerAutoUpdaterSuccess.log('New update available', info.version)
if(process.platform === 'darwin'){
info.darwindownload = `https://github.com/WesterosCraftCode/ElectronLauncher/releases/download/v${info.version}/westeroscraftlauncher-${info.version}.dmg`
showUpdateUI(info)
}
populateSettingsUpdateInformation(info)
break
case 'update-downloaded':