Skip to content

Commit

Permalink
Test: change icon
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia committed Aug 20, 2024
1 parent 16c1dcb commit 5dcbb5c
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ on:
- 'v*'

jobs:
prepare-dependency:
name: Prepare Dependency
prepare-icon:
name: Prepare Icon
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Make Icon
run: |
Expand All @@ -29,6 +27,15 @@ jobs:
name: Icon
path: Rabbit.ico

prepare-dependency:
name: Prepare Dependency
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Fetch Jiandao
run: |
WORK=`pwd`
Expand Down Expand Up @@ -94,18 +101,29 @@ jobs:
prepare-autohotkey-binaries:
name: Prepare AutoHotkey Binaries
runs-on: windows-latest
needs: prepare-icon
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download Dependencies
uses: actions/download-artifact@v4
with:
name: Icon

- name: Fetch AutoHotkey
run: |
$RcEditVer = (Invoke-RestMethod "https://api.github.com/repos/electron/rcedit/releases/latest").tag_name
$RcEditUrl = "https://github.com/electron/rcedit/releases/download/$RcEditVer/rcedit-x64.exe"
Invoke-WebRequest $RcEditUrl -Out rcedit.exe
$AhkVer = Invoke-RestMethod "https://www.autohotkey.com/download/2.0/version.txt"
$AhkUrl = "https://www.autohotkey.com/download/2.0/AutoHotkey_$AhkVer.zip"
Invoke-WebRequest $AhkUrl -Out ahk.zip
Expand-Archive -Path ahk.zip -DestinationPath temp -Force
Move-Item -Path .\temp\AutoHotkey*.exe -Destination .\
Remove-Item -Recurse temp,ahk.zip
.\rcedit.exe .\AutoHotkey32.exe --set-icon .\Rabbit.ico
.\rcedit.exe .\AutoHotkey64.exe --set-icon .\Rabbit.ico
- name: Upload AutoHotkey
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 5dcbb5c

Please sign in to comment.