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:
2026-11-29 06:23:58 +00:00
parent d42727618e
commit b34d34dacb
24 changed files with 2598 additions and 93 deletions
+2
View File
@@ -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