Upload via GUI (324 Dateien)
This commit is contained in:
@@ -14,11 +14,11 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||||
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright (c) M_Viper. Alle Rechte vorbehalten.")]
|
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright (c) M_Viper. Alle Rechte vorbehalten.")]
|
||||||
[assembly: System.Reflection.AssemblyDescriptionAttribute("Installiert AeroMC")]
|
[assembly: System.Reflection.AssemblyDescriptionAttribute("Installiert AeroMC")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.4.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.3.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.2.4")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.3.0")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("AeroMC Setup")]
|
[assembly: System.Reflection.AssemblyProductAttribute("AeroMC Setup")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("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")]
|
[assembly: System.Resources.NeutralResourcesLanguageAttribute("de-DE")]
|
||||||
|
|
||||||
// Von der MSBuild WriteCodeFragment-Klasse generiert.
|
// Von der MSBuild WriteCodeFragment-Klasse generiert.
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
c285113a921613345252c7c4e9c903f219339ded7e116f59ea5c382b3fb91383
|
d4aa003e6f1fea6ce37c1c2da67fbefc0285394aad8f1f1d794e4fdef0e6d71f
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace AeroMCSetup {
|
|||||||
/// InitializeComponent
|
/// InitializeComponent
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.12.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.14.0")]
|
||||||
public void InitializeComponent() {
|
public void InitializeComponent() {
|
||||||
if (_contentLoaded) {
|
if (_contentLoaded) {
|
||||||
return;
|
return;
|
||||||
@@ -66,7 +66,7 @@ namespace AeroMCSetup {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[System.STAThreadAttribute()]
|
[System.STAThreadAttribute()]
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[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() {
|
public static void Main() {
|
||||||
AeroMCSetup.App app = new AeroMCSetup.App();
|
AeroMCSetup.App app = new AeroMCSetup.App();
|
||||||
app.InitializeComponent();
|
app.InitializeComponent();
|
||||||
|
|||||||
@@ -542,7 +542,7 @@ namespace AeroMCSetup {
|
|||||||
/// InitializeComponent
|
/// InitializeComponent
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.12.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.14.0")]
|
||||||
public void InitializeComponent() {
|
public void InitializeComponent() {
|
||||||
if (_contentLoaded) {
|
if (_contentLoaded) {
|
||||||
return;
|
return;
|
||||||
@@ -558,7 +558,7 @@ namespace AeroMCSetup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[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.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
||||||
|
|||||||
@@ -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); });
|
||||||
Reference in New Issue
Block a user