This commit is contained in:
DevLarge 2021-01-09 15:57:07 +01:00
parent 873a907752
commit befc3bbc70
2 changed files with 5 additions and 1 deletions

View File

@ -1296,16 +1296,20 @@ function populateSettingsUpdateInformation(data){
settingsUpdateChangelogTitle.innerHTML = data.releaseName
settingsUpdateChangelogText.innerHTML = data.releaseNotes
populateVersionInformation(data.version, settingsUpdateVersionValue, settingsUpdateVersionTitle, settingsUpdateVersionCheck)
console.log('LARGE: Data != null')
if(process.platform === 'darwin'){
console.log('LARGE: Darwin platform')
settingsUpdateButtonStatus('Download from GitHub<span style="font-size: 10px;color: gray;text-shadow: none !important;">Close the launcher and run the dmg to update.</span>', false, () => {
shell.openExternal(data.darwindownload)
})
} else {
settingsUpdateButtonStatus('Downloading..', true)
console.log('LARGE: ELSE')
}
} else {
settingsUpdateTitle.innerHTML = 'You Are Running the Latest Version'
console.log('LARGE: Latest version')
settingsUpdateChangelogCont.style.display = 'none'
populateVersionInformation(remote.app.getVersion(), settingsUpdateVersionValue, settingsUpdateVersionTitle, settingsUpdateVersionCheck)
settingsUpdateButtonStatus('Check for Updates', false, () => {

View File

@ -59,7 +59,7 @@ if(!isDev){
info.darwindownload = `https://github.com/DevLarge/StellarNetworkLauncherUtil/releases/download/v1.0.2/Stellar-Network-Launcher-setup-1.0.2.exe.blockmap`
info.darwindownload = `https://github.com/DevLarge/StellarNetworkLauncherUtil/releases/download/v${info.version}/Stellar-Network-Launcher-setup-${info.version}.exe.blockmap`
// Prøv fra version 1.0.0
// v${info.version}
// https://github.com/DevLarge/StellarNetworkLauncherUtil/releases/download/v1.0.1/Stellar.Network.Launcher-setup-1.0.1.blockmap