Skip to content

Commit 18e4bee

Browse files
Update .github/workflows/build-and-release.yml to install Inno Setup with choco and use pwsh shell
1 parent 06804ef commit 18e4bee

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build-and-release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
permissions:
9-
contents: write
9+
contents: write
1010

1111
jobs:
1212
build:
@@ -37,13 +37,12 @@ jobs:
3737
copy dist\ChiX.exe installer_input\ChiX.exe
3838
3939
- name: Install Inno Setup
40-
run: |
41-
choco install innosetup --yes
40+
run: choco install innosetup --yes
4241

4342
- name: Build Inno Setup installer
43+
shell: pwsh
4444
run: |
45-
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" installer_script.iss
46-
# Make sure installer_script.iss is in the root of the repo
45+
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "installer_script.iss"
4746
4847
- name: Get short commit hash
4948
id: vars
@@ -61,6 +60,6 @@ jobs:
6160
prerelease: false
6261
files: |
6362
dist/ChiX.exe
64-
chix-setup.exe # name matches OutputBaseFilename from .iss script
63+
chix-setup.exe
6564
env:
6665
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)