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:
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# Stop the Luminary server started by Luminary.app.
|
||||
# Double-clicking a .command file opens Terminal for as long as this runs.
|
||||
set -u
|
||||
|
||||
APP="/Applications/Luminary.app"
|
||||
if [ ! -d "$APP" ]; then
|
||||
APP="$(cd "$(dirname "$0")" && pwd)/Luminary.app"
|
||||
fi
|
||||
|
||||
if [ ! -d "$APP" ]; then
|
||||
echo "Luminary.app was not found in /Applications. Move it there and try again."
|
||||
read -r -p "Press Return to close this window." _
|
||||
exit 1
|
||||
fi
|
||||
|
||||
"$APP/Contents/Resources/launcher.sh" --stop
|
||||
read -r -p "Press Return to close this window." _
|
||||
Reference in New Issue
Block a user