Upload via GUI (324 Dateien)

This commit is contained in:
2026-10-30 05:54:21 +00:00
parent f97ad783fb
commit e8b5d6b6e0
7 changed files with 503 additions and 17 deletions
+2 -2
View File
@@ -231,8 +231,8 @@ function installAddon(filePath) {
if (!/\.(mcpack|mcaddon|mcworld|mctemplate)$/i.test(filePath)) {
return { ok: false, message: 'Nur .mcpack, .mcaddon, .mcworld oder .mctemplate möglich.' };
}
const child = spawn('cmd', ['/c', 'start', '', filePath], { detached: true, stdio: 'ignore' });
child.unref();
// über die Shell öffnen, nicht über "cmd /c start": Zeichen wie & im Dateinamen wären dort Befehlstrenner
require('electron').shell.openPath(filePath).catch(() => {});
return { ok: true };
}