From 906b3f8f4a30e3928f0a5bb926d23bc5122f26a8 Mon Sep 17 00:00:00 2001 From: Luca LeBlanc <67206487+yodaluca23@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:10:32 -0500 Subject: [PATCH] Update Build and Release.yml --- .github/workflows/Build and Release.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Build and Release.yml b/.github/workflows/Build and Release.yml index f605f27..2456ae4 100644 --- a/.github/workflows/Build and Release.yml +++ b/.github/workflows/Build and Release.yml @@ -128,12 +128,19 @@ jobs: - name: Download Orion .deb file from Chariz repo run: | - orion_url=$(curl -s https://repo.chariz.com/Packages | jq -r '.[] | select(.package=="dev.theos.orion14").versions[0].depiction.url') - orion_version=$(curl -s "$orion_url" | grep -oP '(?<=

Orion ).*(?=

)') - orion_download_url=$(curl -s "$orion_url" | grep -oP '(?<=Download)') - curl -L "$orion_download_url" -o "Build Components/orion" + # Fetch the Packages file from Chariz repo + packages_data=$(curl -s https://repo.chariz.com/Packages) + # Find the entry for Orion package + orion_entry=$(echo "$packages_data" | awk '/Package: dev.theos.orion14/,/^$/') + # Extract necessary details from the Orion entry + orion_version=$(echo "$orion_entry" | grep -oP 'Version: \K.*') + orion_download_url=$(echo "$orion_entry" | grep -oP 'Filename: \K.*') + # Download Orion .deb file + curl -L "https://repo.chariz.com/$orion_download_url" -o "Build Components/orion" + # Set environment variables echo "orion=Build Components/orion" >> $GITHUB_ENV echo "ORIONVERSION=$orion_version" >> $GITHUB_ENV + - name: Upload Orion to VirusTotal if: ${{ env.VIRUSTOTALKEY }}