This commit is contained in:
DevLarge 2021-01-10 14:20:14 +01:00
parent 96e9325db1
commit c85f0e62c7
4 changed files with 9 additions and 2 deletions

View File

@ -1302,6 +1302,11 @@ function populateSettingsUpdateInformation(data){
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 if (process.platform === 'win32'){
settingsUpdateButtonStatus('Downloading version now...', true, () => {
console.openExternal(data.darwindownload)
})
} else {
settingsUpdateButtonStatus('Downloading..', true)
console.log('LARGE: DOWNLOADING')

View File

@ -49,6 +49,7 @@ if(!isDev){
console.log('LARGE: Platform win32')
// Continue with HEliosLauncher as dir
// TRY DOWNLOAD HERE
info.darwindownload = `https://github.com/DevLarge/HeliosLauncher/releases/download/v${info.version}/Stellar-Network-Launcher-setup-${info.version}.exe`
}
if(process.platform === 'darwin'){
@ -78,6 +79,7 @@ if(!isDev){
settingsUpdateButtonStatus('Install Now', false, () => {
if(!isDev){
ipcRenderer.send('autoUpdateAction', 'installUpdateNow')
console.log('LARGE: !isDev')
}
})
showUpdateUI(info)

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "stellarnetworklauncher",
"version": "1.0.3",
"version": "1.0.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "stellarnetworklauncher",
"version": "1.0.3",
"version": "1.0.4",
"productName": "Stellar Network Launcher",
"description": "Modded Minecraft Launcher for Stellar Network",
"author": "Stellar Network (https://github.com/DevLarge/)",