feat: build_pkg script

This commit is contained in:
Strix 2023-10-14 22:39:49 +02:00
parent d6cfab4eb7
commit d1f7f3c7ff
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

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