- Notifications
You must be signed in to change notification settings - Fork 400
/
Copy pathcli.wixproj
39 lines (39 loc) · 2.25 KB
/
cli.wixproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="utf-8"?>
<Projectxmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration>Release</Configuration>
<PlatformCondition="'$(Platform)' == ''">x64</Platform>
<!-- "ProductVersion" gets overridden when run with the commandline by the release CI, this is useful to define it if not defined -->
<ProductVersionCondition="'$(ProductVersion)' == ''">0.1.0</ProductVersion>
<!-- "OutputName" gets overridden when run with the commandline by the release CI, it's the name of the output file -->
<OutputNameCondition="'$(OutputName)' == ''">$(MSBuildProjectName)</OutputName>
<OutputType>package</OutputType>
<DefineConstants>
$(DefineConstants);
ProductVersion=$(ProductVersion);
</DefineConstants>
<DefineSolutionProperties>false</DefineSolutionProperties>
<WixTargetsPathCondition="'$(WixTargetsPath)' == ''">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
</PropertyGroup>
<ItemGroup>
<!-- path and name of the additional files that contains additional config for the installer generation and needs Compile -->
<CompileInclude="cli.wxs"/>
<CompileInclude="ui.wxs"/>
</ItemGroup>
<ItemGroup>
<!-- Include directories containing both user-specified output and unzipped release for ease -->
<!-- "SourceDir" is defined when run with the commandline by the release CI, it's the folder containing files to include in the installer -->
<BindInputPathsInclude="$(SourceDir)"/>
</ItemGroup>
<ItemGroup>
<!-- https://wixtoolset.org//documentation/manual/v3/wixui/wixui_dialog_library.html -->
<WixExtensionInclude="WixUIExtension"/>
<!-- we need the following to be able to broadcast the environment vars change -->
<WixExtensionInclude="WixUtilExtension"/>
</ItemGroup>
<TargetName="SetStepOutput"AfterTargets="Build"Condition="'$(GITHUB_ACTIONS)' != ''">
<!-- Define a GitHub Actions workflow step output containing the target path -->
<MessageImportance="high"Text="::set-output name=msi::$(TargetPath)"/>
</Target>
<ImportProject="$(WixTargetsPath)"/>
</Project>