Skip to content

Commit

Permalink
Auto-updating fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Matwix committed Nov 9, 2020
1 parent 1785436 commit e43668c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/assets/js/scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1300,9 +1300,7 @@ function populateSettingsUpdateInformation(data){
shell.openExternal(data.darwindownload)
})
} else {
settingsUpdateButtonStatus('Download from GitHub<span style="font-size: 10px;color: gray;text-shadow: none !important;">Close the launcher and run the exe to update.</span>', false, () => {
shell.openExternal(data.windownload)
})
settingsUpdateButtonStatus('Downloading...', true)
}

playButton.disabled = true
Expand Down
4 changes: 1 addition & 3 deletions app/assets/js/scripts/uicore.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ if(!isDev){
info.darwindownload = `https://github.com/Matwix/ARPGLauncher/releases/download/v${info.version}/AncientRPG.Launcher-setup-${info.version}.dmg`
showUpdateUI(info)
}

info.windownload = `https://github.com/Matwix/ARPGLauncher/releases/download/v${info.version}/AncientRPG.Launcher-setup-${info.version}.exe`


populateSettingsUpdateInformation(info)
break
case 'update-downloaded':
Expand Down

0 comments on commit e43668c

Please sign in to comment.