diff --git a/apps/electron/package.json b/apps/electron/package.json index 51d88e3a8..916df7e08 100644 --- a/apps/electron/package.json +++ b/apps/electron/package.json @@ -125,6 +125,13 @@ "**/*", "*{.ts}" ] + }, + { + "from": "../server/src/html/", + "to": "extraResources/html/", + "filter": [ + "**/*" + ] } ] } diff --git a/apps/server/src/app.ts b/apps/server/src/app.ts index 3d2d1d229..29d9d17a6 100644 --- a/apps/server/src/app.ts +++ b/apps/server/src/app.ts @@ -117,8 +117,9 @@ app.use(`${prefix}/external`, (req, res) => { app.use(`${prefix}/user`, express.static(publicDir.userDir, { etag: false, lastModified: true })); // Serve legacy timer for old browsers that don't support modern JS +// dotfiles must be allowed since the install path can contain dot directories (eg AppImage mounts in /tmp/.mount_*) app.get(`${prefix}/timer-legacy`, authenticateAndRedirect, (_req, res) => { - res.sendFile(srcFiles.timerLegacy); + res.sendFile(srcFiles.timerLegacy, { dotfiles: 'allow' }); }); // Base route for static files