Skip to content

Commit 70bdc73

Browse files
authored
Update build.yml
1 parent 1f6ce70 commit 70bdc73

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v6
1616

17-
- name: Install AutoHotkey
18-
run: |
19-
choco install autohotkey --version=2.0.19 -y
20-
choco install ahk2exe -y
21-
shell: pwsh
17+
- name: Install AutoHotkey
18+
shell: pwsh
19+
run: |
20+
choco install autohotkey --version=2.0.19 -y
21+
$dest = "$env:ProgramFiles\AutoHotkey\Compiler"
22+
New-Item -Type Directory -Force $dest | Out-Null
23+
Invoke-WebRequest -Uri "https://github.com/AutoHotkey/Ahk2Exe/releases/latest/download/Ahk2Exe.zip" -OutFile "$env:TEMP\Ahk2Exe.zip"
24+
Expand-Archive "$env:TEMP\Ahk2Exe.zip" -DestinationPath $dest -Force
25+
2226
- name: Verify Installation
2327
run: |
2428
$compiler = "$env:ProgramFiles\AutoHotkey\Compiler\Ahk2Exe.exe"

0 commit comments

Comments
 (0)