Fix: Downloads aus /data/downloads servieren + Electron Build fixen

- Downloads-Pfad von relativem App-Pfad auf DATA_DIR/downloads geändert
- Electron package.json: author Feld ergänzt (Squirrel-Requirement)
- forge.config.js: fehlende Icon-Referenzen entfernt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel 2026-03-07 12:51:53 +01:00
parent 17dcd6073f
commit 0646a1b46e
3 changed files with 2 additions and 3 deletions

View file

@ -4,7 +4,6 @@ module.exports = {
packagerConfig: { packagerConfig: {
name: 'Gaming Hub', name: 'Gaming Hub',
executableName: 'gaming-hub', executableName: 'gaming-hub',
icon: path.join(__dirname, 'assets', 'icon'),
asar: true, asar: true,
}, },
makers: [ makers: [
@ -12,7 +11,6 @@ module.exports = {
name: '@electron-forge/maker-squirrel', name: '@electron-forge/maker-squirrel',
config: { config: {
name: 'gaming-hub-desktop', name: 'gaming-hub-desktop',
setupIcon: path.join(__dirname, 'assets', 'icon.ico'),
}, },
}, },
{ {

View file

@ -3,6 +3,7 @@
"productName": "Gaming Hub", "productName": "Gaming Hub",
"version": "1.5.0", "version": "1.5.0",
"description": "Gaming Hub Desktop App mit Ad-Blocker", "description": "Gaming Hub Desktop App mit Ad-Blocker",
"author": "Gaming Hub",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",

View file

@ -155,7 +155,7 @@ async function boot(): Promise<void> {
} }
// Serve download files (Electron installer etc.) // Serve download files (Electron installer etc.)
const downloadsDir = path.join(import.meta.dirname ?? __dirname, '..', '..', 'downloads'); const downloadsDir = path.join(DATA_DIR, 'downloads');
app.use('/downloads', express.static(downloadsDir)); app.use('/downloads', express.static(downloadsDir));
// 404 for missing downloads (prevent SPA fallback) // 404 for missing downloads (prevent SPA fallback)
app.get('/downloads/{*splat}', (_req, res) => { app.get('/downloads/{*splat}', (_req, res) => {