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:
parent
17dcd6073f
commit
0646a1b46e
3 changed files with 2 additions and 3 deletions
|
|
@ -155,7 +155,7 @@ async function boot(): Promise<void> {
|
|||
}
|
||||
|
||||
// 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));
|
||||
// 404 for missing downloads (prevent SPA fallback)
|
||||
app.get('/downloads/{*splat}', (_req, res) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue