Package a self-contained macOS app and harden serving
- Add macos/build.mjs: stages a universal .app outside the checkout, bundles and checksums Node, installs production deps per architecture, compiles the launcher shim, signs ad-hoc or with a Developer ID, and writes a zip and dmg with an optional notarization path. - Serve precompressed brotli/gzip assets and split admin panels and the public pages out of the main bundle. - Support HTTP range requests, and fix upload and quota accounting, gallery download counts and unreadable-file handling. - Add server HTTP integration tests, a Gitea CI workflow, a catalog backup script and a crash screen for the UI.
This commit is contained in:
@@ -13,6 +13,8 @@ COPY tsconfig.json vite.config.ts index.html ./
|
||||
COPY src ./src
|
||||
# Vite copies public/ into dist/, so the served PDF (in-app Guide link) needs it here.
|
||||
COPY public ./public
|
||||
# The build writes the .br/.gz asset copies the server prefers to send.
|
||||
COPY scripts ./scripts
|
||||
RUN npm run build
|
||||
|
||||
# ------------------------------------------------------- production node_modules
|
||||
|
||||
Reference in New Issue
Block a user