From 45a4890031192f4e7409443f98e824dad17ba175 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Fri, 22 May 2026 16:19:35 +0900 Subject: feat: Arch Linux packaging with Electron frontend, systemd backend service, and Windows exe build - Add Electron wrapper (main.cjs, preload.cjs) for desktop frontend - Add systemd service unit, env config, and sysusers for backend API - Add PKGBUILD and .install for Arch package (makepkg -si) - Add desktop entry, SVG/PNG icon, and wrapper scripts - Add bin/build-pkg, bin/install-pkg, bin/windows-pkg scripts - Make API port configurable via PORT env var (default 3000, prod 18390) - Add electron-builder config for Windows exe cross-compilation - Set vite base to './' for Electron file:// loading --- packaging/dispatch.install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packaging/dispatch.install (limited to 'packaging/dispatch.install') diff --git a/packaging/dispatch.install b/packaging/dispatch.install new file mode 100644 index 0000000..e6db694 --- /dev/null +++ b/packaging/dispatch.install @@ -0,0 +1,16 @@ +post_install() { + echo "" + echo "==> Dispatch has been installed." + echo " Edit /etc/dispatch/dispatch-api.conf to configure the API." + echo " Then enable and start the service:" + echo " systemctl enable --now dispatch-api" + echo "" +} + +post_upgrade() { + echo "" + echo "==> Dispatch has been upgraded." + echo " You may need to restart the service:" + echo " systemctl restart dispatch-api" + echo "" +} -- cgit v1.2.3