This commit is contained in:
2026-02-14 23:15:34 +01:00
parent ead0a88c11
commit 7a79e8e803
2 changed files with 17 additions and 6 deletions

View File

@@ -18,9 +18,20 @@ build() {
make
}
package() {
install -Dm755 "$srcdir/${pkgname}" "$pkgdir/usr/bin/${pkgname}"
install -Dm644 "$srcdir/templates/index.html" "$pkgdir/usr/share/${pkgname}/templates/index.html"
install -Dm644 "$srcdir/static/htmx.min.js" "$pkgdir/usr/share/${pkgname}/static/htmx.min.js"
install -Dm644 "$srcdir/static/settings.json" "$pkgdir/usr/share/${pkgname}/static/settings.json"
install -Dm644 "$srcdir/lf-server-admin-panel.service" "$pkgdir/usr/lib/systemd/system/lf-server-admin-panel.service"
install -Dm755 "$srcdir/${pkgname}" \
"$pkgdir/usr/bin/${pkgname}"
# Frontend build output
install -d "$pkgdir/usr/share/${pkgname}/frontend/build"
cp -a "$srcdir/frontend/build/." \
"$pkgdir/usr/share/${pkgname}/frontend/build"
# Assets directory
install -d "$pkgdir/usr/share/${pkgname}/assets"
cp -a "$srcdir/assets/." \
"$pkgdir/usr/share/${pkgname}/assets/"
# systemd service
install -Dm644 "$srcdir/shadowrun-server.service" \
"$pkgdir/usr/lib/systemd/system/shadowrun-server.service"
}

View File

@@ -32,7 +32,7 @@ npm run build
1. tar the source files to make it cleaner
```
tar czf pkg/lf-server-admin-panel-0.1.1.tar.gz src/ static/ templates/ lf-server-admin-panel.service CMakeLists.txt
tar czf pkg/shadowrun-server-0.1.1.tar.gz src/ modules/ assets/ frontend/build/ shadowrun-server.service CMakeLists.txt
```
2. create the package