Skip to content

Commit

Permalink
Genericified
Browse files Browse the repository at this point in the history
  • Loading branch information
yairm210 authored Jul 28, 2024
1 parent 4ac441f commit a9404e6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# unciv-wix-tests

Takes an app folder (.exe and data files) as a zip, and wraps it in MSI including a start menu shortcut

To start:

- "Use as template" to create your own repo
- Replace Folder.zip with your own folder
- Replace Icon.ico with your own icon
- Replace "YOUR" tests in app.exs with your data

Happy testing!
18 changes: 9 additions & 9 deletions app.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@
Version="$(env.APP_VERSION).0"
UpgradeCode="74d42802-054a-4869-a703-658c361fe94c">
<!-- MSI versions require a 4-part, so we add a ".0" to the end of every version -->
<Icon Id="icon.ico" SourceFile="files/Unciv.ico"/>
<Icon Id="icon.ico" SourceFile="files/Icon.ico"/>
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." Schedule="afterInstallInitialize" />

<!-- Pack all the files into the MSI instead of spreading this over .cab files -->
<MediaTemplate CompressionLevel="high" EmbedCab="yes" />

<DirectoryRef Id="INSTALLFOLDER">
<Component Id="Unciv" Guid="70aab056-7fbd-4a7a-9cbb-2275ee064f06">
<File Id="UncivExe"
<Component Id="App" Guid="70aab056-7fbd-4a7a-9cbb-2275ee064f06">
<File Id="AppExe"
KeyPath="yes"
Checksum="yes"
Source="files/Unciv.exe">
</File>
</Component>
</DirectoryRef>

<ComponentGroup Id="UncivFiles" Directory="INSTALLFOLDER">
<ComponentGroup Id="AppFiles" Directory="INSTALLFOLDER">
<Files Include="files\**" />
</ComponentGroup>

<Component Id="UncivShortcuts" Directory="INSTALLFOLDER" Guid="0eac8b63-1cab-4645-b0cb-ad7535f0e9ce">
<Component Id="AppShortcuts" Directory="INSTALLFOLDER" Guid="0eac8b63-1cab-4645-b0cb-ad7535f0e9ce">
<Shortcut Id="StartMenuShortcut"
Name="$(var.Name)"
Target="[#UncivExe]"
Target="[#AppExe]"
Arguments="--data-dir=%APPDATA%\$(var.InstallFolder)"
Icon="icon.ico"
Directory="ApplicationProgramsFolder"
Expand All @@ -46,9 +46,9 @@
</Component>

<Feature Id="ProductFeature" Title="$(var.Name)" Level="1" ConfigurableDirectory="INSTALLFOLDER">
<ComponentGroupRef Id="UncivFiles" />
<ComponentRef Id="Unciv" />
<ComponentRef Id="UncivShortcuts" />
<ComponentGroupRef Id="AppFiles" />
<ComponentRef Id="App" />
<ComponentRef Id="AppShortcuts" />
</Feature>


Expand Down
File renamed without changes.

0 comments on commit a9404e6

Please sign in to comment.