Files
Markson GuGa Beyond fb6b7f3ec4 build: add an nfpm config for the Linux packages
install/nfpm/v2raya.yaml describes every Linux package of a release: the
two binaries, the rule data the packaging job downloads, the desktop
entry, nine icon sizes rendered from gui/src/assets/img/v2raya-icon.svg,
and, per packager, either the systemd units or the OpenRC init script
together with its conf.d file.

The rule data is shipped as regular files rather than as symlinks into a
v2ray-rules-dat package, which no distribution provides.

The maintainer scripts reload systemd where it exists and do nothing on
Alpine.
2026-11-02 11:58:22 +08:00

9 lines
360 B
Bash

#!/bin/sh
# Only the systemd distributions have a manager to notify. Restarting a
# running v2raya on upgrade keeps the core in step with the new binary; a
# package that is merely installed has nothing running yet.
if command -v systemctl >/dev/null 2>&1; then
systemctl daemon-reload || true
systemctl try-restart v2raya.service >/dev/null 2>&1 || true
fi