feat: build_pkg script
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Didier Slof 2023-08-08 01:19:52 +02:00
parent 2ff924965e
commit e2154bda29
Signed by: didier
GPG key ID: 01E71F18AA4398E5

9
build_pkg.sh Normal file
View file

@ -0,0 +1,9 @@
#!/bin/sh
mkdir -p dist/root/usr/bin/ dist/root/etc/pkgr
echo "\x00" > dist/root/etc/pkgr/YOU.CAN.NOT.UPDATE.PKGR.WITH.PKGR
cd pkgr
cargo build -r
cp target/release/pkgr ../dist/root/usr/bin/pkgr
cd ../dist
python ../pkg.py ../package.toml pkgr root