Files
playit-agent/build-scripts/nfpm.yaml
T
Patrick LorioandGitHub 7a61d15903 Add optional Linux service manager selection (#175)
* Add optional service manager selection for installed playit

- Add `--systemd` and `--openrc` on Linux
- Route start/stop/setup flows through the selected manager
- Add OpenRC support and manager-specific error messages

* Add init-manager aware Linux packaging

- Package systemd and OpenRC service files from one nfpm config
- Detect the active init system in postinstall and install the matching service
- Route `linux/playit` through the chosen manager when present
2026-06-04 12:33:47 -07:00

66 lines
1.6 KiB
YAML

# yaml-language-server: $schema=https://nfpm.goreleaser.com/schema.json
name: playit
arch: ${PLAYIT_NFPM_ARCH}
platform: linux
version: ${PLAYIT_VERSION}
version_schema: semver
release: ${PLAYIT_PACKAGE_RELEASE}
section: net
priority: optional
maintainer: Patrick Lorio <patrick@playit.gg>
description: Making it easy to play games with friends. Makes your server public
homepage: https://playit.gg
license: BSD-2-Clause
depends:
- logrotate
contents:
- src: ${PLAYIT_CLI_BIN}
dst: /opt/playit/agent
expand: true
file_info:
mode: 0755
- src: ${PLAYITD_BIN}
dst: /opt/playit/playitd
expand: true
file_info:
mode: 0755
- src: ./linux/playit
dst: /opt/playit/playit
file_info:
mode: 0755
- src: /opt/playit/playit
dst: /usr/local/bin/playit
type: symlink
- src: /opt/playit/playitd
dst: /usr/local/bin/playitd
type: symlink
- src: ./linux/logrotate.conf
dst: /etc/logrotate.d/playit
file_info:
mode: 0644
- src: ./linux/playit.service
dst: /opt/playit/share/init/systemd/playit.service
file_info:
mode: 0644
- src: ./linux/playit.openrc
dst: /opt/playit/share/init/openrc/playit
file_info:
mode: 0755
- dst: /etc/playit
type: dir
file_info:
mode: 0750
owner: playit
group: playit
- dst: /var/log/playit
type: dir
file_info:
mode: 0750
owner: playit
group: playit
scripts:
preinstall: ./build-scripts/nfpm/preinstall.sh
postinstall: ./build-scripts/nfpm/postinstall.sh
preremove: ./build-scripts/nfpm/preremove.sh
postremove: ./build-scripts/nfpm/postremove.sh