Return internal errors to clients

This commit is contained in:
NXShock 2025-06-03 10:36:09 +05:00
parent 1fe5a70c7c
commit c4c9bff7c6
2 changed files with 24 additions and 16 deletions

View file

@ -11,13 +11,13 @@ sha256sums=('SKIP')
backup=("etc/$pkgname.conf")
build() {
cd "$pkgname"
go build -o "$pkgname" -ldflags "-linkmode=external -s -w" -buildmode=pie -trimpath -mod=readonly -modcacherw
cd $pkgname
go build -o $pkgname -ldflags "-linkmode=external -s -w" -buildmode=pie -trimpath -mod=readonly -modcacherw
}
package() {
cd "$pkgname"
install -Dm755 "$pkgname" "$pkgdir"/usr/bin/$pkgname
install -Dm644 "$pkgname.conf" "$pkgdir/etc/$pkgname.conf"
install -Dm755 $pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
install -Dm755 $pkgname $pkgdir/usr/bin/$pkgname
install -Dm644 $pkgname.conf $pkgdir/etc/$pkgname.conf
install -Dm755 $pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
}