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,36 @@
|
||||
# Verification pipeline for git.maple-street.net (Gitea Actions / act_runner).
|
||||
#
|
||||
# Runs the same gates a release needs, so a broken commit cannot reach main
|
||||
# unnoticed. The container is pinned to the Node major the Dockerfile ships, and
|
||||
# the runner only needs Docker — no Node, Chrome or extra tools on the host.
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:24-bookworm
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Typecheck
|
||||
run: npm run typecheck
|
||||
|
||||
# Includes the server HTTP suite, which starts the real server against a
|
||||
# temporary data directory (auth, ownership, quota, gallery, ranges).
|
||||
- name: Tests
|
||||
run: npm test
|
||||
|
||||
- name: Production build
|
||||
run: npm run build
|
||||
|
||||
- name: Server syntax
|
||||
run: for file in server/*.mjs; do node --check "$file"; done
|
||||
Reference in New Issue
Block a user