Skip to content

Commit 713f396

Browse files
Attempt to fix installer build from workflow
1 parent 5f01fff commit 713f396

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ runs:
2929
dotnet tool install --global wix --version 4.0.6
3030
for rid in ${{ inputs.rids }}; do
3131
dotnet publish ./DesktopClock/DesktopClock.csproj -o "publish/$rid" -c Release -r $rid -p:Version=${{ inputs.version }}
32-
(
33-
cd "publish/$rid" &&
34-
wix build Product.wxs -o "DesktopClock-${{ inputs.version }}-${rid}.msi"
35-
)
32+
wix build Product.wxs -d MainExeSource="publish/$rid/DesktopClock.exe" -o "publish/$rid/DesktopClock-${{ inputs.version }}-${rid}.msi"
3633
done
3734
3835
- uses: actions/upload-artifact@v4

Product.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<Fragment>
4949
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
5050
<Component Id="MainExe" Guid="2148738D-B1F4-48BD-8615-1617541C6BB3">
51-
<File Id="MainExe" Name="$(var.Name).exe" Source="$(var.Name).exe" />
51+
<File Id="MainExe" Name="$(var.Name).exe" Source="$(var.MainExeSource)" />
5252
</Component>
5353
</ComponentGroup>
5454
</Fragment>

0 commit comments

Comments
 (0)