This commit is contained in:
DevLarge 2021-01-10 14:33:29 +01:00
parent b00f0c241c
commit bae5121245
4 changed files with 5 additions and 22 deletions

View File

@ -1296,7 +1296,6 @@ 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'){
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, () => {
@ -1304,12 +1303,12 @@ function populateSettingsUpdateInformation(data){
})
}
else if (process.platform === 'win32'){
settingsUpdateButtonStatus('Downloading version now...', true, () => {
settingsUpdateButtonStatus('Finding version now...', true, () => {
console.openExternal(data.darwindownload)
})
} else {
settingsUpdateButtonStatus('Downloading..', true)
console.log('LARGE: DOWNLOADING')
console.log('LARGE: Not win32 or darwin -> Linux?')
}
} else {
settingsUpdateTitle.innerHTML = 'You Are Running the Latest Version'

View File

@ -47,29 +47,13 @@ if(!isDev){
if (process.platform === 'win32') {
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'){
console.log('LARGE: Platform darwin')
info.darwindownload = `https://github.com/DevLarge/HeliosLauncher/releases/download/v${info.version}/Stellar-Network-Launcher-setup-${info.version}.exe.blockmap`
// v${info.version}
// BARE .exe ???
// https://github.com/DevLarge/StellarNetworkLauncherUtil/releases/download/v${info.version}/Stellar.Network.Launcher-setup-${info.version}.blockmap
// Som test flytt JEI fra required => optinionalOn
showUpdateUI(info)
console.log('LARGE: UICORE found info with version ' + info.version)
}
populateSettingsUpdateInformation(info)

2
package-lock.json generated
View File

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

View File

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