add Arch Linux packaging

- Bundle the server into dist/rotrouter.cjs with esbuild (npm run build),
  so the package needs only nodejs at runtime and is arch=any.
- Read the config and static file paths from ROTROUTER_CONFIG and
  ROTROUTER_PUBLIC (defaults unchanged for npm start).
- PKGBUILD for rotrouter-git and a hardened systemd unit running as a
  DynamicUser without capabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 04:17:27 +00:00
co-authored by Claude Opus 5.5
parent fb1c733699
commit 65ccd1a025
6 changed files with 213 additions and 111 deletions
+5
View File
@@ -1,2 +1,7 @@
node_modules
.idea
dist
/packaging/arch/src
/packaging/arch/pkg
/packaging/arch/RotRouter
/packaging/arch/*.pkg.tar.*