Skip to content

Commit

Permalink
Update Build and Release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yodaluca23 authored Jun 23, 2024
1 parent ffa7463 commit 754099d
Showing 1 changed file with 54 additions and 27 deletions.
81 changes: 54 additions & 27 deletions .github/workflows/Build and Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ jobs:
echo "CHANGEVERSION=${{ github.event.inputs.CHANGEVERSION }}" >> $GITHUB_ENV
echo "SPOTURL=${{ github.event.inputs.SPOTURL }}" >> $GITHUB_ENV
- name: Install Homebrew
- name: Set Workflow URL
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- name: Install dpkg
run: brew install dpkg
echo "WORKFLOWURL=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> $GITHUB_ENV
echo "Workflow URL is $WORKFLOWURL"
- name: Install Pyzule
run: bash -c "$(curl https://raw.githubusercontent.com/asdfzxcvbn/pyzule/main/install-pyzule.sh)"
Expand Down Expand Up @@ -67,6 +63,7 @@ jobs:
# If no matching tag is found, fail the job
echo "No matching tag found for EEVEEVERSION=$EEVEEVERSION"
exit 1
echo "Using Release Tag: $REALEEVEEVERSION"
- name: Create Build Components folder
run: mkdir -p "Build Components"
Expand Down Expand Up @@ -364,6 +361,7 @@ jobs:
run: |
cp -R OpenSpotifySafariExtension/OpenSpotifySafariExtension.appex "Build Components/OpenSpotifySafariExtension.appex"
echo "EXTCOMMIT=$(git -C OpenSpotifySafariExtension rev-parse --short HEAD)" >> $GITHUB_ENV
echo "Extensions Commit is: $EXTCOMMIT"
- name: Compress OpenSpotifySafariExtension to zip
run: |
Expand Down Expand Up @@ -394,6 +392,7 @@ jobs:
cd "Build Components"
cp Payload/Spotify.app/Info.plist "Info.plist"
echo "VANILLASPOTIFYVERSION=$(/usr/libexec/PlistBuddy -c "Print :SpotifyVersionShort" Info.plist)" >> $GITHUB_ENV
echo "Vanilla Spotify Version: $VANILLASPOTIFYVERSION"
- name: Modify Spotify with OpenSpotifySafariExtension.appex
run: |
Expand Down Expand Up @@ -422,6 +421,7 @@ jobs:
CHANGEVERSION="${ADDR[0]}.${ADDR[1]}.$new_last_number"
fi
echo "CHANGEVERSION=$CHANGEVERSION" >> $GITHUB_ENV
echo "Using ChangeVersion: $CHANGEVERSION"
- name: Set Components Path
run: echo "componentspath=Build Components" >> $GITHUB_ENV
Expand All @@ -430,6 +430,7 @@ jobs:
run: |
pyzule -i "${{ env.spotifyEXTpath }}" -o "${{ env.componentspath }}/SpotC++.v${{ env.CHANGEVERSION }}_v${{ env.VANILLASPOTIFYVERSION }}.ipa" -v ${{ env.CHANGEVERSION }} -b com.yodaluca23.SpotCPlusPlus -f "${{ env.sposifyfix }}" "${{ env.sposify }}" "${{ env.orion }}" "${{ env.swiftprotobuf }}" "${{ env.eevee-arm }}" -u
echo "patchedspotify=${{ env.componentspath }}/SpotC++.v${{ env.CHANGEVERSION }}_v${{ env.VANILLASPOTIFYVERSION }}.ipa" >> $GITHUB_ENV
echo "Patched Spotify .ipa Located: $patchedspotify"
- name: Upload SpotifyPatched.ipa to VirusTotal
if: ${{ env.VIRUSTOTALKEY }}
Expand All @@ -443,33 +444,59 @@ jobs:
if: ${{ env.VIRUSTOTALKEY }}
run: echo "VTSPOTC=${{ steps.vt-spotc.outputs.analysis }}" >> $GITHUB_ENV

- name: Extract and Prepare VirusTotal Links
run: |
VTSPOTC=$(echo "$VTSPOTC" | awk -F'=' '{print $2}')
echo "SpotC++ VT: $VTSPOTC"
echo "VTSPOTC=$VTSPOTC" >> $GITHUB_ENV
VTVANILLASPOTIFY=$(echo "$VTVANILLASPOTIFY" | awk -F'=' '{print $2}')
echo "Vanilla Spotify VT: $VTVANILLASPOTIFY"
echo "VTVANILLASPOTIFY=$VTVANILLASPOTIFY" >> $GITHUB_ENV
VTEEVEE=$(echo "$VTEEVEE" | awk -F'=' '{print $2}')
echo "EeveeSpotify VT: $VTEEVEE"
echo "VTEEVEE=$VTEEVEE" >> $GITHUB_ENV
VTSPOSIFY=$(echo "$VTSPOSIFY" | awk -F'=' '{print $2}')
echo "Sposify VT: $VTSPOSIFY"
echo "VTSPOSIFY=$VTSPOSIFY" >> $GITHUB_ENV
VTEXT=$(echo "$VTEXT" | awk -F'=' '{print $2}')
echo "OpenSpotifySafariExtension VT: $VTEXT"
echo "VTEXT=$VTEXT" >> $GITHUB_ENV
VTSPOSIFYFIX=$(echo "$VTSPOSIFYFIX" | awk -F'=' '{print $2}')
echo "SposifyFix VT: $VTSPOSIFYFIX"
echo "VTSPOSIFYFIX=$VTSPOSIFYFIX" >> $GITHUB_ENV
VTORION=$(echo "$VTORION" | awk -F'=' '{print $2}')
echo "Orion VT: $VTORION"
echo "VTORION=$VTORION" >> $GITHUB_ENV
VTSWIFTPROTOBUF=$(echo "$VTSWIFTPROTOBUF" | awk -F'=' '{print $2}')
echo "SwiftProtobuf VT: $VTSWIFTPROTOBUF"
echo "VTSWIFTPROTOBUF=$VTSWIFTPROTOBUF" >> $GITHUB_ENV
- name: Construct ChangeLog
run: |
echo "CHANGELOG## Updated [EeveeSpotify](https://github.com/whoeevee/EeveeSpotify) to $env.REALEEVEEVERSION" > changelog.txt
echo "CHANGELOG\n\n$(curl -s https://api.github.com/repos/whoeevee/EeveeSpotify/releases/tags/$env.REALEEVEEVERSION | jq -r '.body' | sed 's/^/- (EeveeSpotify) /')" >> changelog.txt
echo "CHANGELOG\n\n- Updated Spotify to version $env.VANILLASPOTIFYVERSION" >> changelog.txt
echo "CHANGELOG\n\n***\nVanilla IPA decrypted using [a fork of BagBak](https://github.com/TbhLovers/bagbak), on my personal MacBook Air and Jailbroken iPhone XR running [Dopamine](https://github.com/opa334/Dopamine), feel free to contact me with questions about this environment.\nApp .ipa modified and tweaks injected using Pyzule with the github Action Workflow.\n" >> changelog.txt
echo "CHANGELOG## Updated [EeveeSpotify](https://github.com/whoeevee/EeveeSpotify) to ${{ env.REALEEVEEVERSION }}" > changelog.txt
echo "CHANGELOG\n\n$(curl -s https://api.github.com/repos/whoeevee/EeveeSpotify/releases/tags/${{ env.REALEEVEEVERSION }} | jq -r '.body' | sed 's/^/- (EeveeSpotify) /')" >> changelog.txt
echo "CHANGELOG\n\n- Updated Spotify to version ${{ env.VANILLASPOTIFYVERSION }}" >> changelog.txt
echo "CHANGELOG\n\n***\nVanilla IPA decrypted using [a fork of BagBak](https://github.com/TbhLovers/bagbak), on my personal MacBook Air and Jailbroken iPhone XR running [Dopamine](https://github.com/opa334/Dopamine), feel free to contact me with questions about this environment.\nApp .ipa modified and tweaks injected using Pyzule with [the github Action Workflow.](${{ env.WORKFLOWURL }})\n" >> changelog.txt
if [ ! -z "${{ secrets.VIRUSTOTALKEY }}" ]; then
echo "<details>" >> changelog.txt
echo "<summary>Version Details & VirusTotal Results</summary><br>" >> changelog.txt
echo "Spotify Version: v$env.VANILLASPOTIFYVERSION" >> changelog.txt
echo "[Vanilla Spotify VirusTotal]($env.VTVANILLASPOTIFY)<br>" >> changelog.txt
echo "EeveeSpotify Version: $env.REALEEVEEVERSION" >> changelog.txt
echo "[EeveeSpotify .deb VirusTotal]()<br>" >> changelog.txt
echo "Sposify v$env.SPOSIFYVERSION" >> changelog.txt
echo "[Sposify VirusTotal]()<br>" >> changelog.txt
echo "OpenSpotifySafariExtension Commit: $env.EXTCOMMIT" >> changelog.txt
echo "[OpenSpotifySafariExtension Repo Compressed .zip VirusTotal]()<br>" >> changelog.txt
echo "Sposify Fix v$env.SPOSIFYFIXVERSION" >> changelog.txt
echo "[Sposify Fix VirusTotal]()<br>" >> changelog.txt
echo "Orion Runtime (iOS 14 - 16) v$env.ORIONVERSION" >> changelog.txt
echo "[Orion Runtime (iOS 14 - 16) .deb VirusTotal]()<br>" >> changelog.txt
echo "SwiftProtobuf Framework v$env.SWIFTPROTOBUFVERSION" >> changelog.txt
echo "[SwiftProtobuf Framework .deb VirusTotal]()<br>" >> changelog.txt
echo "SpotC++ Version: v$env.CHANGEVERSION" >> changelog.txt
echo "[SpotC++ VirusTotal]()<br>" >> changelog.txt
echo "Spotify Version: v${{ env.VANILLASPOTIFYVERSION }}" >> changelog.txt
echo "[Vanilla Spotify VirusTotal](${{ env.VTVANILLASPOTIFY }})<br>" >> changelog.txt
echo "EeveeSpotify Version: ${{ env.REALEEVEEVERSION }}" >> changelog.txt
echo "[EeveeSpotify .deb VirusTotal](${{ env.VTEEVEE }})<br>" >> changelog.txt
echo "Sposify v${{ env.SPOSIFYVERSION }}" >> changelog.txt
echo "[Sposify VirusTotal](${{ env.VTSPOSIFY }})<br>" >> changelog.txt
echo "OpenSpotifySafariExtension Commit: ${{ env.EXTCOMMIT }}" >> changelog.txt
echo "[OpenSpotifySafariExtension Repo Compressed .zip VirusTotal](${{ env.VTEXT }})<br>" >> changelog.txt
echo "Sposify Fix v${{ env.SPOSIFYFIXVERSION }}" >> changelog.txt
echo "[Sposify Fix VirusTotal](${{ env.VTSPOSIFYFIX }})<br>" >> changelog.txt
echo "Orion Runtime (iOS 14 - 16) v${{ env.ORIONVERSION }}" >> changelog.txt
echo "[Orion Runtime (iOS 14 - 16) .deb VirusTotal](${{ env.VTORION }})<br>" >> changelog.txt
echo "SwiftProtobuf Framework v${{ env.SWIFTPROTOBUFVERSION }}" >> changelog.txt
echo "[SwiftProtobuf Framework .deb VirusTotal](${{ env.VTSWIFTPROTOBUF }})<br>" >> changelog.txt
echo "SpotC++ Version: v${{ env.CHANGEVERSION }}" >> changelog.txt
echo "[SpotC++ VirusTotal](${{ env.VTSPOTC }})<br>" >> changelog.txt
echo "<br></details>" >> changelog.txt
fi
Expand Down

0 comments on commit 754099d

Please sign in to comment.