Skip to content

Commit 5366ac9

Browse files
committed
Windows Distribution Fixes
1 parent 34b90c7 commit 5366ac9

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

app/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,13 @@ tasks.register<Exec>("packageCustomDmg"){
145145

146146
tasks.register<Exec>("packageCustomMsi"){
147147
workingDir = file("windows")
148+
group = "compose desktop"
149+
148150
commandLine(
149151
"dotnet",
150152
"build",
151-
"/p:Platform=x64"
153+
"/p:Platform=x64",
154+
"/p:DefineConstants=\"Version=$version;\""
152155
)
153156
}
154157

app/windows/Processing.wixproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<Project Sdk="WixToolset.Sdk/5.0.1">
2+
<PropertyGroup>
3+
<OutputPath>..\build\compose\binaries\main\msi</OutputPath>
4+
<OutputName>Processing-$(Version)</OutputName>
5+
</PropertyGroup>
26
<ItemGroup>
37
<PackageReference Include="WixToolset.UI.wixext" Version="5.0.1" />
48
</ItemGroup>

app/windows/Processing.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
2-
<Package Name="Processing" Manufacturer="Processing Foundation" Version="0.0.1" UpgradeCode="34577f3b-7cbe-4c5e-827d-5fe5ce9d371c">
2+
<Package Name="Processing" Manufacturer="Processing Foundation" Version="$(Version)" UpgradeCode="34577f3b-7cbe-4c5e-827d-5fe5ce9d371c">
33
<Icon Id="icon.ico" SourceFile="..\..\build\windows\processing.ico" />
44
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
55

@@ -10,7 +10,7 @@
1010
<WixVariable Id="WixUILicenseRtf" Value="license.rtf" />
1111
<WixVariable Id="WixUIDialogBmp" Value="background.png" />
1212
<WixVariable Id="WixUIBannerBmp" Value="banner.png" />
13-
<Feature Id="MainApplication" Title="Main Application" Level="1">
13+
<Feature Id="MainApplication" Title="Processing" Level="1">
1414
<Files Include="..\build\compose\binaries\main\app\Processing\**" />
1515
<ComponentRef Id="ApplicationShortcut" />
1616
</Feature>

0 commit comments

Comments
 (0)