Skip to content

Commit 7058b51

Browse files
Just specify the arch, not full rid
It's a WPF app and I have no plans to expand past Windows
1 parent 713f396 commit 7058b51

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/actions/prepare-for-release/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ inputs:
66
version:
77
description: 'Version number for the app'
88
default: '0.0.0'
9-
rids:
10-
description: 'Runtime identifiers for the build'
11-
default: 'win-x64 win-arm64'
9+
archs:
10+
description: 'Architectures for the build'
11+
default: 'x64 arm64'
1212

1313
runs:
1414
using: "composite"
@@ -27,9 +27,9 @@ runs:
2727
shell: bash
2828
run: |
2929
dotnet tool install --global wix --version 4.0.6
30-
for rid in ${{ inputs.rids }}; do
31-
dotnet publish ./DesktopClock/DesktopClock.csproj -o "publish/$rid" -c Release -r $rid -p:Version=${{ inputs.version }}
32-
wix build Product.wxs -d MainExeSource="publish/$rid/DesktopClock.exe" -o "publish/$rid/DesktopClock-${{ inputs.version }}-${rid}.msi"
30+
for arch in ${{ inputs.archs }}; do
31+
dotnet publish ./DesktopClock/DesktopClock.csproj -o "publish/$arch" -c Release --os win --arch $arch -p:Version=${{ inputs.version }}
32+
wix build Product.wxs -d MainExeSource="publish/$arch/DesktopClock.exe" -o "publish/$arch/DesktopClock-${{ inputs.version }}-${arch}.msi"
3333
done
3434
3535
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)