Skip to content

Commit

Permalink
Build MSI on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsgrill committed Aug 20, 2024
1 parent 8c7fcb7 commit ca0c98b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,16 @@ jobs:
with:
name: potatodrive.exe
path: potatodrive.exe

- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 5.x
- name: Install wix
run: dotnet tool install --global wix
- name: Create installer
run: wix PotatoDrive.wxs -o PotatoDrive.msi
- uses: actions/upload-artifact@v4
with:
name: PotatoDrive.msi
path: PotatoDrive.msi
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
windows/storage
potatodrive.exe
PotatoDrive.msi
PotatoDrive.wixpdb
27 changes: 27 additions & 0 deletions PotatoDrive.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package
UpgradeCode="281d8029-ac78-4de4-848a-c5c01446b9f3"
Language="1033"
Manufacturer="Balázs Grill"
Name="PotatoDrive"
Version="1.0.0.0">


<MediaTemplate EmbedCab="yes" />

<StandardDirectory Id="ProgramFiles64Folder">
<Directory Id="INSTALLFOLDER" Name="PotatoDrive">
<Component Id="PotatoDrive" Guid="5384ae16-4fe0-4fc0-820d-e27b95344479">
<File Source="potatodrive.exe"></File>
<File Source="potato.ico"></File>
</Component>
</Directory>
</StandardDirectory>

<Feature Id="PotatoDriveCoreFeature">
<ComponentRef Id="PotatoDrive" />
</Feature>

</Package>
</Wix>

0 comments on commit ca0c98b

Please sign in to comment.