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-04-24 20:45:13 +02:00
|
|
|
echo "Pika Kernel - Package sign complete"
|
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-04-24 20:45:13 +02:00
|
|
|
echo "Pika Kernel - Repo rsync pull complete"
|
2023-02-24 13:01:04 +01:00
|
|
|
|
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-06-06 18:53:04 +02:00
|
|
|
reprepro -V --basedir ./output/repo/ removefilter lunar 'Package (% linux-*-6.4.0-pikaos*)'
|
2023-04-24 20:45:13 +02:00
|
|
|
echo "Pika Kernel - Repo clean complete"
|
2023-02-24 13:30:29 +01:00
|
|
|
|
|
|
|
# Add the new package to the repo
|
2023-05-24 17:33:47 +02:00
|
|
|
reprepro -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
|
2023-04-24 20:45:13 +02:00
|
|
|
echo "Pika Kernel - Repo update complete"
|
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/
|
2023-04-24 20:45:13 +02:00
|
|
|
echo "Pika Kernel - Repo rsync push complete"
|