From 9cebeeeaa43513a961653a63c50afbb41edca3c7 Mon Sep 17 00:00:00 2001 From: M_Viper Date: Fri, 30 Oct 2026 05:54:14 +0000 Subject: [PATCH] Upload via GUI (324 Dateien) --- .../Release/net48/AeroMCSetup.AssemblyInfo.cs | 6 +-- .../AeroMCSetup.AssemblyInfoInputs.cache | 2 +- installer/obj/Release/net48/App.g.cs | 4 +- installer/obj/Release/net48/MainWindow.g.cs | 4 +- scripts/build-streamdeck-plugin.js | 45 +++++++++++++++++++ 5 files changed, 53 insertions(+), 8 deletions(-) create mode 100644 scripts/build-streamdeck-plugin.js diff --git a/installer/obj/Release/net48/AeroMCSetup.AssemblyInfo.cs b/installer/obj/Release/net48/AeroMCSetup.AssemblyInfo.cs index 08e455c..7cdf0ad 100644 --- a/installer/obj/Release/net48/AeroMCSetup.AssemblyInfo.cs +++ b/installer/obj/Release/net48/AeroMCSetup.AssemblyInfo.cs @@ -14,11 +14,11 @@ using System.Reflection; [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright (c) M_Viper. Alle Rechte vorbehalten.")] [assembly: System.Reflection.AssemblyDescriptionAttribute("Installiert AeroMC")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.4.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.2.4")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.3.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.3.0")] [assembly: System.Reflection.AssemblyProductAttribute("AeroMC Setup")] [assembly: System.Reflection.AssemblyTitleAttribute("AeroMC Setup")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.2.4.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.3.0.0")] [assembly: System.Resources.NeutralResourcesLanguageAttribute("de-DE")] // Von der MSBuild WriteCodeFragment-Klasse generiert. diff --git a/installer/obj/Release/net48/AeroMCSetup.AssemblyInfoInputs.cache b/installer/obj/Release/net48/AeroMCSetup.AssemblyInfoInputs.cache index 5d69712..d0e8f26 100644 --- a/installer/obj/Release/net48/AeroMCSetup.AssemblyInfoInputs.cache +++ b/installer/obj/Release/net48/AeroMCSetup.AssemblyInfoInputs.cache @@ -1 +1 @@ -c285113a921613345252c7c4e9c903f219339ded7e116f59ea5c382b3fb91383 +d4aa003e6f1fea6ce37c1c2da67fbefc0285394aad8f1f1d794e4fdef0e6d71f diff --git a/installer/obj/Release/net48/App.g.cs b/installer/obj/Release/net48/App.g.cs index a4913e0..17e8a9d 100644 --- a/installer/obj/Release/net48/App.g.cs +++ b/installer/obj/Release/net48/App.g.cs @@ -46,7 +46,7 @@ namespace AeroMCSetup { /// InitializeComponent /// [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.12.0")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.14.0")] public void InitializeComponent() { if (_contentLoaded) { return; @@ -66,7 +66,7 @@ namespace AeroMCSetup { /// [System.STAThreadAttribute()] [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.12.0")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.14.0")] public static void Main() { AeroMCSetup.App app = new AeroMCSetup.App(); app.InitializeComponent(); diff --git a/installer/obj/Release/net48/MainWindow.g.cs b/installer/obj/Release/net48/MainWindow.g.cs index 7fcda09..710642a 100644 --- a/installer/obj/Release/net48/MainWindow.g.cs +++ b/installer/obj/Release/net48/MainWindow.g.cs @@ -542,7 +542,7 @@ namespace AeroMCSetup { /// InitializeComponent /// [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.12.0")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.14.0")] public void InitializeComponent() { if (_contentLoaded) { return; @@ -558,7 +558,7 @@ namespace AeroMCSetup { } [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.12.0")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.14.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] diff --git a/scripts/build-streamdeck-plugin.js b/scripts/build-streamdeck-plugin.js new file mode 100644 index 0000000..f7ba61d --- /dev/null +++ b/scripts/build-streamdeck-plugin.js @@ -0,0 +1,45 @@ +'use strict'; + +/* + * build-streamdeck-plugin.js – das AeroMC-Plugin als Datei zum Weitergeben packen + * ------------------------------------------------------------------------------- + * Erzeugt dist/AeroMC.streamDeckPlugin. Das ist ein ZIP mit dem Plugin-Ordner; ein + * Doppelklick darauf installiert es in der Stream-Deck-Software. Die Datei ist für + * alle gedacht, die den Launcher nicht selbst aktualisieren lassen (oder die + * Stream-Deck-Software erst später installieren). + * + * Die Launcher-Installation enthält das Plugin ohnehin und kopiert es von selbst + * (src/streamdeckplugin.js) - diese Datei ist der zweite Weg dafür. + */ + +const fs = require('fs'); +const path = require('path'); +const archiver = require('archiver'); + +const ROOT = path.join(__dirname, '..'); +const NAME = 'com.aeromc.launcher.sdPlugin'; +const QUELLE = path.join(ROOT, 'streamdeck-plugin', NAME); +const AUSGABE = path.join(ROOT, 'dist', 'AeroMC.streamDeckPlugin'); + +function main() { + if (!fs.existsSync(path.join(QUELLE, 'manifest.json'))) throw new Error(`${QUELLE}\\manifest.json fehlt.`); + fs.mkdirSync(path.dirname(AUSGABE), { recursive: true }); + fs.rmSync(AUSGABE, { force: true }); + + return new Promise((resolve, reject) => { + const aus = fs.createWriteStream(AUSGABE); + const zip = archiver('zip', { zlib: { level: 9 } }); + aus.on('close', () => { + const version = JSON.parse(fs.readFileSync(path.join(QUELLE, 'manifest.json'), 'utf8')).Version; + console.log(`\n» Stream-Deck-Plugin ${version}: ${AUSGABE} (${Math.round(zip.pointer() / 1024)} KB)`); + resolve(); + }); + zip.on('error', reject); + zip.pipe(aus); + // Der Plugin-Ordner steht als einziger Eintrag oben im ZIP; Protokolle der Stream-Deck-Software gehören nicht hinein + zip.directory(QUELLE, NAME, (eintrag) => (/^(logs[\\/]|logs$)/.test(eintrag.name.replace(NAME + '/', '')) ? false : eintrag)); + zip.finalize(); + }); +} + +main().catch((err) => { console.error('Stream-Deck-Plugin konnte nicht gepackt werden:', err.message); process.exit(1); });