2023-02-22 16:23:11 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-02-22 17:55:06 +01:00
|
|
|
echo "Pika Kernel - Releasing Kernel"
|
|
|
|
|
|
|
|
# Sign the packages
|
|
|
|
dpkg-sig --sign builder ./output/linux-image*.deb
|
|
|
|
dpkg-sig --sign builder ./output/linux-headers*.deb
|
2023-02-25 16:34:32 +01:00
|
|
|
#dpkg-sig --sign builder ./output/linux-tools*.deb
|
2023-02-22 17:55:06 +01:00
|
|
|
|
2023-02-24 13:30:29 +01:00
|
|
|
# Pull down existing ppa repo db files etc
|
2023-02-24 16:22:46 +01:00
|
|
|
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
|
2023-02-24 13:01:04 +01:00
|
|
|
|
2023-02-24 13:30:29 +01:00
|
|
|
# Copy over our gpg key in case it has been updated
|
2023-02-24 13:01:04 +01:00
|
|
|
cp ./output/key.gpg ./output/repo/key.gpg
|
|
|
|
|
2023-04-10 21:44:55 +02:00
|
|
|
# Remove our existing package from the repo - only for current version so we can update it
|
2023-04-24 20:27:08 +02:00
|
|
|
reprepro -V --basedir ./output/repo/ removefilter lunar 'Package (% linux-*-6.3.0-pikaos*)'
|
2023-02-24 13:30:29 +01:00
|
|
|
|
|
|
|
# Add the new package to the repo
|
2023-04-24 19:02:11 +02:00
|
|
|
reprepro -V --basedir ./output/repo/ includedeb lunar ./output/linux-image*.deb
|
|
|
|
reprepro -V --basedir ./output/repo/ includedeb lunar ./output/linux-headers*.deb
|
2023-02-22 17:55:06 +01:00
|
|
|
|
2023-02-24 13:30:29 +01:00
|
|
|
# Push the updated ppa repo to the server
|
2023-02-24 16:22:46 +01:00
|
|
|
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
|