Skip to content

Commit

Permalink
Add workflow to obtain the latest version and package SetDll
Browse files Browse the repository at this point in the history
  • Loading branch information
Bush2021 committed Jan 3, 2025
1 parent eec5854 commit 1e5fd79
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get SetDll Latest Release
id: setdll
run: |
RELEASE_INFO=$(gh api repos/Bush2021/setdll/releases/latest)
DOWNLOAD_URL=$(echo "$RELEASE_INFO" | jq -r '.assets[0].browser_download_url')
echo "download_url=$DOWNLOAD_URL" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -73,6 +82,18 @@ jobs:
7z a -mx=9 -m0=lzma2 -mmt=on ../Chrome++_v${{ env.VERSION }}_x86_x64_arm64.7z *
cd ..
- name: Package SetDll
run: |
mkdir -p setdll
wget -O setdll_latest.7z ${{ steps.setdll.outputs.download_url }}
cd setdll
7z x ../setdll_latest.7z
cp ../build_artifacts/version-x86-${{ env.VERSION }}/version.dll chrome++32.dll
cp ../build_artifacts/version-x64-${{ env.VERSION }}/version.dll chrome++64.dll
cp ../src/chrome++.ini ./
7z a -mx=9 -ms=on -m0=lzma2 -mmt=on ../setdll.7z *
cd ..
- name: Create Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 1e5fd79

Please sign in to comment.