This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-08-24 18:00:53 +03:00 committed by GitHub
parent 5cf257447a
commit 24a2b31027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
name: PikaOS Launchpad Oibaf Graphics Build Deps Sync name: PikaOS external Oibaf Graphics Build Deps Sync
on: on:
workflow_dispatch workflow_dispatch
@ -31,7 +31,7 @@ jobs:
if_key_exists: replace if_key_exists: replace
- name: Sync Repository - name: Sync Repository
run: chmod +x ./launchpad-oibaf-graphics.sh && ./launchpad-oibaf-graphics.sh run: chmod +x ./external-oibaf-graphics.sh && ./external-oibaf-graphics.sh
- name: Purge cache - name: Purge cache
uses: jakejarvis/cloudflare-purge-action@master uses: jakejarvis/cloudflare-purge-action@master

View File

@ -2,27 +2,27 @@
set -e set -e
# Oibaf Graphics MIRROR # Oibaf Graphics MIRROR
mkdir -p ./output/launchpad-oibaf-graphics mkdir -p ./output/external-oibaf-graphics
cd ./output/launchpad-oibaf-graphics cd ./output/external-oibaf-graphics
# launchpad-oibaf-graphics directx-headers dir # external-oibaf-graphics directx-headers dir
mkdir -p ./directx-headers mkdir -p ./directx-headers
cd ./directx-headers cd ./directx-headers
wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/d/directx-headers/ wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/d/directx-headers/
# Return to Oibaf Graphics MIRROR # Return to Oibaf Graphics MIRROR
cd ../ cd ../
# launchpad-oibaf-graphics drm dir # external-oibaf-graphics drm dir
mkdir -p ./drm mkdir -p ./drm
cd ./drm cd ./drm
wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/libd/libdrm/ wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/libd/libdrm/
# Return to Oibaf Graphics MIRROR # Return to Oibaf Graphics MIRROR
cd ../ cd ../
# launchpad-oibaf-graphics meson dir # external-oibaf-graphics meson dir
mkdir -p ./meson mkdir -p ./meson
cd ./meson cd ./meson
wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/m/meson/ wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/m/meson/
# Return to Oibaf Graphics MIRROR # Return to Oibaf Graphics MIRROR
cd ../ cd ../
# launchpad-oibaf-graphics spirv dir # external-oibaf-graphics spirv dir
mkdir -p ./spirv mkdir -p ./spirv
cd ./spirv cd ./spirv
wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/s/ wget --recursive --no-parent -R "*arm64.deb,*armhf.deb,*ppc64el.deb,*s390x.deb" -A "*oibaf~l*" -m https://ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu/pool/main/s/
@ -37,16 +37,16 @@ dpkg-sig --sign builder ./output/*.deb
# Pull down existing ppa repo db files etc # Pull down existing ppa repo db files etc
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
# Check if the launchpad component exists # Check if the external component exists
if cat ./output/repo/conf/distributions | grep Components: | grep launchpad if cat ./output/repo/conf/distributions | grep Components: | grep external
then then
true true
else else
sed -i "s#Components:#Components: launchpad#" ./output/repo/conf/distributions sed -i "s#Components:#Components: external#" ./output/repo/conf/distributions
fi fi
# Add the new package to the repo # Add the new package to the repo
reprepro -C launchpad -V --basedir ./output/repo/ includedeb lunar ./output/*.deb reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server # Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/ rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/