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
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- V8 compiles JavaScript at run time; the hardened runtime blocks that
unless the process opts in. Node's own documentation names these two. -->
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<!-- sharp loads libvips as a dylib from its own package directory; library
validation would otherwise reject it when the signatures differ. -->
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>