-
-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy pathInstaller.wixproj
132 lines (131 loc) · 6.64 KB
/
Installer.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2020 Frans van Dorsselaer
SPDX-License-Identifier: GPL-2.0-only
-->
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFramework>net6.0-windows8.0</TargetFramework>
<BaseIntermediateOutputPath>obj</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)\$(Configuration)\</IntermediateOutputPath>
<GenerateGitVersionInformation>false</GenerateGitVersionInformation>
<UpdateAssemblyInfo>false</UpdateAssemblyInfo>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<Import Project="..\InstallerDependencies\obj\InstallerDependencies.csproj.nuget.g.props" Condition="Exists('..\InstallerDependencies\obj\InstallerDependencies.csproj.nuget.g.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<Platform>x64</Platform>
<ProjectGuid>080ef94c-a8ec-4975-a697-bbf8c1a56055</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputType>Package</OutputType>
<OutputName>usbipd-win</OutputName>
<DefineSolutionProperties>false</DefineSolutionProperties>
<PublishDir>..\Usbipd\bin\publish</PublishDir>
<PowerShellDir>..\Usbipd.PowerShell\bin\$(Configuration)\netstandard2.0\win</PowerShellDir>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<DefineConstants>Debug;PublishDir=$(PublishDir);PowerShellDir=$(PowerShellDir);DriversDir=$(ProjectDir)..\Drivers;Year=$([System.DateTime]::UtcNow.ToString("yyyy"))</DefineConstants>
<Cultures>en-US</Cultures>
<SuppressAllWarnings>False</SuppressAllWarnings>
<Pedantic>True</Pedantic>
<SuppressIces>ICE30</SuppressIces>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<DefineConstants>PublishDir=$(PublishDir);PowerShellDir=$(PowerShellDir);DriversDir=$(ProjectDir)..\Drivers;Year=$([System.DateTime]::UtcNow.ToString("yyyy"))</DefineConstants>
<Cultures>en-US</Cultures>
<SuppressAllWarnings>False</SuppressAllWarnings>
<Pedantic>True</Pedantic>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<SuppressIces>ICE30</SuppressIces>
</PropertyGroup>
<ItemGroup>
<Compile Include="Drivers.wxs" />
<Compile Include="Server.wxs" />
<Compile Include="Product.wxs" />
<Compile Include="UserInterface.wxs" />
<Content Include="HarvestTransform.xslt" />
<HarvestDirectory Include="$(PublishDir)" Visible="false">
<DirectoryRefId>APPLICATIONFOLDER</DirectoryRefId>
<SuppressRootDirectory>true</SuppressRootDirectory>
<SuppressCOM>true</SuppressCOM>
<SuppressRegistry>true</SuppressRegistry>
<ComponentGroupName>Usbipd</ComponentGroupName>
<PreprocessorVariable>var.PublishDir</PreprocessorVariable>
<Transforms>HarvestTransform.xslt</Transforms>
</HarvestDirectory>
<HarvestDirectory Include="$(PowerShellDir)" Visible="false">
<DirectoryRefId>PowerShell</DirectoryRefId>
<SuppressRootDirectory>true</SuppressRootDirectory>
<SuppressCOM>true</SuppressCOM>
<SuppressRegistry>true</SuppressRegistry>
<ComponentGroupName>PowerShell</ComponentGroupName>
<PreprocessorVariable>var.PowerShellDir</PreprocessorVariable>
</HarvestDirectory>
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixFirewallExtension">
<HintPath>$(WixExtDir)\WixFirewallExtension.dll</HintPath>
<Name>WixFirewallExtension</Name>
</WixExtension>
<WixExtension Include="WixDifxAppExtension">
<HintPath>$(WixExtDir)\WixDifxAppExtension.dll</HintPath>
<Name>WixDifxAppExtension</Name>
</WixExtension>
<WixLibrary Include="difxapp_x64">
<HintPath>$(WixExtDir)\difxapp_x64.wixlib</HintPath>
<Name>difxapp_x64</Name>
</WixLibrary>
<WixExtension Include="WixUIExtension">
<HintPath>$(WixExtDir)WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
</WixExtension>
<WixExtension Include="WixUtilExtension">
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
<Name>WixUtilExtension</Name>
</WixExtension>
</ItemGroup>
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
<Target Name="BeforeBuild">
<MakeDir Directories="obj">
</MakeDir>
</Target>
<Target Name="EnsureWixToolsetInstalled" AfterTargets="BeforeBuild" />
<Target Name="SetTarget" AfterTargets="GetVersion">
<!--
Now that we have determined the version, augment the OutputName to include the version number.
-->
<Message Importance="high" Text="Version detected as $(GitVersion_FullSemVer)" />
<CreateProperty Value="$(OutputName)_$(GitVersion_MajorMinorPatch)">
<Output TaskParameter="Value" PropertyName="TargetName" />
</CreateProperty>
<CreateProperty Value="$(TargetName)$(TargetExt)">
<Output TaskParameter="Value" PropertyName="TargetFileName" />
</CreateProperty>
<CreateProperty Value="$(TargetDir)$(TargetFileName)">
<Output TaskParameter="Value" PropertyName="TargetPath" />
</CreateProperty>
<CreateProperty Value="$(TargetName)$(TargetPdbExt)">
<Output TaskParameter="Value" PropertyName="TargetPdbName" />
</CreateProperty>
<!--
This ensures that each x.y.z version has a different ProductId, so every update is a MajorUpgrade.
It also ensures that 2 builds of the same x.y.z version will never be installed simultaneously.
The alternative (WiX AllowSameVersionUpgrades) causes ICE61.
-->
<CreateProperty Value="$(DefineConstants);ProductId=EA1D5623-E6A7-4E4A-9259-E39722$([System.Byte]::Parse($(GitVersion_Major)).ToString(X2))$([System.Byte]::Parse($(GitVersion_Minor)).ToString(X2))$([System.Byte]::Parse($(GitVersion_Patch)).ToString(X2))">
<Output TaskParameter="Value" PropertyName="DefineConstants" />
</CreateProperty>
</Target>
<PropertyGroup>
<PreBuildEvent>del /s /q "$(ProjectDir)..\Usbipd\bin\publish" > NUL:
rmdir /s /q "$(ProjectDir)..\Usbipd\bin\publish" > NUL:
dotnet publish --nologo --no-restore --no-build --configuration $(Configuration) $(ProjectDir)..\Usbipd
del /s "$(ProjectDir)..\Usbipd\bin\publish\System.CommandLine.resources.dll"</PreBuildEvent>
</PropertyGroup>
<Import Project="..\InstallerDependencies\obj\InstallerDependencies.csproj.nuget.g.targets" Condition="Exists('..\InstallerDependencies\obj\InstallerDependencies.csproj.nuget.g.targets')" />
</Project>