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
+3 -1
View File
@@ -8,7 +8,9 @@
"dev": "vite",
"server": "node server/index.mjs",
"server:dev": "node --watch server/index.mjs",
"build": "tsc --noEmit && vite build",
"build": "tsc --noEmit && vite build && node scripts/precompress.mjs",
"precompress": "node scripts/precompress.mjs",
"backup": "node scripts/backup.mjs",
"start": "node server/index.mjs",
"preview": "vite preview",
"typecheck": "tsc --noEmit",