Upload via GUI (22 Dateien)
This commit is contained in:
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "aeromc",
|
"name": "aeromc",
|
||||||
"version": "0.24.0",
|
"version": "1.0.0-beta",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "aeromc",
|
"name": "aeromc",
|
||||||
"version": "0.24.0",
|
"version": "1.0.0-beta",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"skinview3d": "^3.4.2",
|
"skinview3d": "^3.4.2",
|
||||||
|
|||||||
+4
-3
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "aeromc",
|
"name": "aeromc",
|
||||||
"version": "0.37.1",
|
"productName": "AeroMC",
|
||||||
|
"version": "1.0.0-beta",
|
||||||
"description": "AeroMC – Instanz-basierter Minecraft-Launcher (à la MultiMC/Prism)",
|
"description": "AeroMC – Instanz-basierter Minecraft-Launcher (à la MultiMC/Prism)",
|
||||||
"homepage": "https://M_Viper.de",
|
"homepage": "https://M_Viper.de",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
@@ -12,8 +13,8 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"build": "electron-builder --win nsis --x64 && node -e \"const fs=require('fs');const path=require('path');['dist/builder-debug.yml','dist/builder-effective-config.yaml','dist/win-unpacked'].forEach((target)=>fs.rmSync(target,{recursive:true,force:true}));if(fs.existsSync('dist')){const source=path.join('dist','AeroMC.exe');const target=path.join('dist','AeroMC-Setup.exe');if(fs.existsSync(target))fs.rmSync(target,{force:true});if(fs.existsSync(source))fs.renameSync(source,target);for(const name of fs.readdirSync('dist')){if((name.endsWith('.exe')&&name!=='AeroMC-Setup.exe')||name.endsWith('.blockmap')){fs.rmSync(path.join('dist',name),{force:true})}}}\"",
|
"build": "electron-builder --win nsis --x64 && node -e \"const fs=require('fs');const path=require('path');['dist/builder-debug.yml','dist/builder-effective-config.yaml','dist/win-unpacked'].forEach((target)=>fs.rmSync(target,{recursive:true,force:true}));if(fs.existsSync('dist')){const source=path.join('dist','AeroMC.exe');const target=path.join('dist','AeroMC-Setup.exe');if(fs.existsSync(target))fs.rmSync(target,{force:true});if(fs.existsSync(source))fs.renameSync(source,target);for(const name of fs.readdirSync('dist')){if((name.endsWith('.exe')&&name!=='AeroMC-Setup.exe'&&name!=='AeroMC-Portable.exe')||name.endsWith('.blockmap')){fs.rmSync(path.join('dist',name),{force:true})}}}\"",
|
||||||
"build:portable": "electron-builder --win portable --x64 && node -e \"const fs=require('fs');const path=require('path');['dist/builder-debug.yml','dist/builder-effective-config.yaml','dist/win-unpacked'].forEach((target)=>fs.rmSync(target,{recursive:true,force:true}));if(fs.existsSync('dist')){for(const name of fs.readdirSync('dist')){if((name.endsWith('.exe')&&name!=='AeroMC.exe')||name.endsWith('.blockmap')){fs.rmSync(path.join('dist',name),{force:true})}}}\""
|
"build:portable": "electron-builder --win portable --x64 && node -e \"const fs=require('fs');const path=require('path');['dist/builder-debug.yml','dist/builder-effective-config.yaml','dist/win-unpacked'].forEach((target)=>fs.rmSync(target,{recursive:true,force:true}));if(fs.existsSync('dist')){const source=path.join('dist','AeroMC.exe');const target=path.join('dist','AeroMC-Portable.exe');if(fs.existsSync(target))fs.rmSync(target,{force:true});if(fs.existsSync(source))fs.renameSync(source,target);for(const name of fs.readdirSync('dist')){if((name.endsWith('.exe')&&name!=='AeroMC-Setup.exe'&&name!=='AeroMC-Portable.exe')||name.endsWith('.blockmap')){fs.rmSync(path.join('dist',name),{force:true})}}}\""
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "com.aeromc.launcher",
|
"appId": "com.aeromc.launcher",
|
||||||
|
|||||||
+1
-1
@@ -751,7 +751,7 @@ ipcMain.handle('update:install', async (_e, asset) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
ipcMain.handle('app:info', () => ({
|
ipcMain.handle('app:info', () => ({
|
||||||
name: pkg.build?.productName || pkg.name || 'AeroMC',
|
name: pkg.productName || pkg.build?.productName || pkg.name || 'AeroMC',
|
||||||
version: app.getVersion(),
|
version: app.getVersion(),
|
||||||
author: pkg.author || '',
|
author: pkg.author || '',
|
||||||
homepage: pkg.homepage || '',
|
homepage: pkg.homepage || '',
|
||||||
|
|||||||
+12
-5
@@ -727,13 +727,20 @@ function closeContextMenu() {
|
|||||||
el('ctx-menu').classList.add('hidden');
|
el('ctx-menu').classList.add('hidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function formatVersionLabel(version) {
|
||||||
|
return String(version || '')
|
||||||
|
.replace(/^v/i, '')
|
||||||
|
.replace(/-beta$/i, ' Beta')
|
||||||
|
.trim() || '–';
|
||||||
|
}
|
||||||
|
|
||||||
// ---------- Automatische Updates ----------
|
// ---------- Automatische Updates ----------
|
||||||
let pendingUpdate = null;
|
let pendingUpdate = null;
|
||||||
|
|
||||||
function showUpdateDialog(info) {
|
function showUpdateDialog(info) {
|
||||||
pendingUpdate = info;
|
pendingUpdate = info;
|
||||||
el('upd-current').textContent = 'v' + info.currentVersion;
|
el('upd-current').textContent = formatVersionLabel(info.currentVersion);
|
||||||
el('upd-new').textContent = 'v' + info.latestVersion;
|
el('upd-new').textContent = formatVersionLabel(info.latestVersion);
|
||||||
el('upd-notes').textContent = (info.notes || '').trim() || 'Keine Änderungshinweise hinterlegt.';
|
el('upd-notes').textContent = (info.notes || '').trim() || 'Keine Änderungshinweise hinterlegt.';
|
||||||
el('upd-progress').classList.add('hidden');
|
el('upd-progress').classList.add('hidden');
|
||||||
el('upd-bar-fill').style.width = '0%';
|
el('upd-bar-fill').style.width = '0%';
|
||||||
@@ -1706,7 +1713,7 @@ async function openSettings() {
|
|||||||
const info = await window.api.appInfo();
|
const info = await window.api.appInfo();
|
||||||
el('s-appinfo').innerHTML = [
|
el('s-appinfo').innerHTML = [
|
||||||
['Name', info.name || 'AeroMC'],
|
['Name', info.name || 'AeroMC'],
|
||||||
['Version', info.version || '–'],
|
['Version', formatVersionLabel(info.version)],
|
||||||
['Autor', info.author || 'Nicht hinterlegt'],
|
['Autor', info.author || 'Nicht hinterlegt'],
|
||||||
['Webseite', info.homepage || 'Nicht hinterlegt', info.homepage || ''],
|
['Webseite', info.homepage || 'Nicht hinterlegt', info.homepage || ''],
|
||||||
['Gitseite', info.gitpage || 'Nicht hinterlegt', info.gitpage || ''],
|
['Gitseite', info.gitpage || 'Nicht hinterlegt', info.gitpage || ''],
|
||||||
@@ -2169,11 +2176,11 @@ function wire() {
|
|||||||
if (info.error) { st.textContent = '✖ ' + info.error; return; }
|
if (info.error) { st.textContent = '✖ ' + info.error; return; }
|
||||||
if (info.noReleases) { st.textContent = 'Noch keine Veröffentlichung vorhanden.'; return; }
|
if (info.noReleases) { st.textContent = 'Noch keine Veröffentlichung vorhanden.'; return; }
|
||||||
if (info.available) {
|
if (info.available) {
|
||||||
st.textContent = `Version ${info.latestVersion} verfügbar.`;
|
st.textContent = `Version ${formatVersionLabel(info.latestVersion)} verfügbar.`;
|
||||||
hide('modal-settings');
|
hide('modal-settings');
|
||||||
showUpdateDialog(info);
|
showUpdateDialog(info);
|
||||||
} else {
|
} else {
|
||||||
st.textContent = `Du hast bereits die neueste Version (v${info.currentVersion}).`;
|
st.textContent = `Du hast bereits die neueste Version (${formatVersionLabel(info.currentVersion)}).`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user