2019-09-05 00:26:26 +08:00
<?xml version="1.0" encoding="utf-8"?>
2019-10-10 03:21:21 +08:00
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureNuGetPackageBuildImports" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2022-05-30 17:38:36 +08:00
<Import Project="..\wix.props" Condition="Exists('..\wix.props')" />
2020-08-05 15:04:18 +08:00
<Import Project="..\..\src\Version.props" />
2022-04-21 22:55:02 +08:00
<PropertyGroup Condition="'$(Platform)' == 'x64'">
2022-01-26 04:02:10 +08:00
<DefineConstants>Version=$(Version);MonacoSRCHarvestPath=$(ProjectDir)..\..\x64\$(Configuration)\modules\FileExplorerPreview\monacoSRC</DefineConstants>
2022-04-21 22:55:02 +08:00
<!-- THIS IS AN INNER LOOP OPTIMIZATION
The build pipeline builds the Settings and Launcher projects for Publication
using a specific profile. If you're doing local installer builds, this will
simulate the build pipeline doing that for you. -->
<PreBuildEvent>IF NOT DEFINED IsPipeline (
2022-07-01 04:10:14 +08:00
call "$([MSBuild]::GetVsInstallRoot())\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 -winsdk=10.0.19041.0
2022-04-21 22:55:02 +08:00
SET PTRoot=..\..\..\..
call "..\..\publish.cmd" x64
)</PreBuildEvent>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)' != 'x64'">
<DefineConstants>Version=$(Version);MonacoSRCHarvestPath=$(ProjectDir)..\..\ARM64\$(Configuration)\modules\FileExplorerPreview\monacoSRC</DefineConstants>
<PreBuildEvent>IF NOT DEFINED IsPipeline (
2022-07-01 04:10:14 +08:00
call "$([MSBuild]::GetVsInstallRoot())\Common7\Tools\VsDevCmd.bat" -arch=arm64 -host_arch=amd64 -winsdk=10.0.19041.0
2022-04-21 22:55:02 +08:00
SET PTRoot=..\..\..\..
call "..\..\publish.cmd" arm64
)</PreBuildEvent>
</PropertyGroup>
2023-01-12 22:25:36 +08:00
<PropertyGroup>
<RunPostBuildEvent>Always</RunPostBuildEvent>
<PostBuildEvent>
2023-01-23 22:59:18 +08:00
call move /Y ..\..\Core.wxs.bk ..\..\Core.wxs
2023-01-12 22:25:36 +08:00
call move /Y ..\..\..\PowerToysSetupCustomActions\DepsFilesLists.h.bk ..\..\..\PowerToysSetupCustomActions\DepsFilesLists.h
</PostBuildEvent>
</PropertyGroup>
2022-04-21 22:55:02 +08:00
<PropertyGroup>
2022-01-06 02:28:09 +08:00
<Name>PowerToysInstaller</Name>
2020-08-05 15:04:18 +08:00
</PropertyGroup>
2019-09-05 00:26:26 +08:00
<PropertyGroup>
2022-04-21 22:55:02 +08:00
<!-- We do not support debug installer builds -->
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<Platform>$(Platform)</Platform>
2019-09-05 00:26:26 +08:00
<ProductVersion>3.10</ProductVersion>
<ProjectGuid>022a9d30-7c4f-416d-a9df-5ff2661cc0ad</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
2022-05-30 17:38:36 +08:00
<OutputName>PowerToysSetup-$(Version)-$(Platform)</OutputName>
2019-09-05 00:26:26 +08:00
<OutputType>Package</OutputType>
2019-10-10 03:21:21 +08:00
<SuppressAclReset>True</SuppressAclReset>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
2019-09-05 00:26:26 +08:00
</PropertyGroup>
2022-04-21 22:55:02 +08:00
<PropertyGroup>
2022-05-30 17:38:36 +08:00
<OutputPath>$(Platform)\$(Configuration)\</OutputPath>
2019-09-05 00:26:26 +08:00
<IntermediateOutputPath>obj\$(Platform)\$(Configuration)\</IntermediateOutputPath>
2022-06-07 16:58:32 +08:00
<SuppressIces>ICE40</SuppressIces>
</PropertyGroup>
<PropertyGroup>
<!-- suppress warning 1108 regarding -sh being deprecated -->
2022-07-01 22:09:41 +08:00
<!-- -sh suppresses file information which was causing wix build to hang in CI -->
2022-06-07 16:58:32 +08:00
<LinkerAdditionalOptions>-v -sh -sw1108</LinkerAdditionalOptions>
2019-09-05 00:26:26 +08:00
</PropertyGroup>
<ItemGroup>
<Compile Include="CustomDialogs\PTInstallDirDlg.wxs" />
2019-09-10 00:38:04 +08:00
<Compile Include="CustomDialogs\PTLicenseDlg.wxs" />
2019-09-05 00:26:26 +08:00
<Compile Include="CustomDialogs\WixUI_PTInstallDir.wxs" />
<Compile Include="Product.wxs" />
2023-01-23 22:59:18 +08:00
<Compile Include="AlwaysOnTop.wxs" />
<Compile Include="Awake.wxs" />
<Compile Include="ColorPicker.wxs" />
<Compile Include="FancyZones.wxs" />
<Compile Include="FileExplorerPreview.wxs" />
<Compile Include="FileLocksmith.wxs" />
<Compile Include="Hosts.wxs" />
<Compile Include="ImageResizer.wxs" />
<Compile Include="KeyboardManager.wxs" />
<Compile Include="MeasureTool.wxs" />
<Compile Include="MouseUtils.wxs" />
2023-02-23 22:59:49 +08:00
<Compile Include="PastePlain.wxs" />
2023-01-23 22:59:18 +08:00
<Compile Include="PowerAccent.wxs" />
<Compile Include="PowerRename.wxs" />
<Compile Include="Run.wxs" />
<Compile Include="Settings.wxs" />
<Compile Include="ShortcutGuide.wxs" />
<Compile Include="TextExtractor.wxs" />
<Compile Include="Tools.wxs" />
<Compile Include="VideoConference.wxs" />
2022-01-26 04:02:10 +08:00
<Compile Include="MonacoSRC.wxs" />
2023-01-23 22:59:18 +08:00
<Compile Include="Core.wxs" />
<Compile Include="Resources.wxs" />
<Compile Include="WinAppSDK.wxs" />
2019-09-05 00:26:26 +08:00
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixUtilExtension">
<HintPath>$(WixExtDir)\WixUtilExtension.dll</HintPath>
<Name>WixUtilExtension</Name>
</WixExtension>
<WixExtension Include="WixUIExtension">
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
<Name>WixUIExtension</Name>
</WixExtension>
2019-12-10 00:02:47 +08:00
<WixExtension Include="WixNetFxExtension">
<HintPath>$(WixExtDir)\WixNetFxExtension.dll</HintPath>
<Name>WixNetFxExtension</Name>
</WixExtension>
2019-09-05 00:26:26 +08:00
</ItemGroup>
<ItemGroup>
<Folder Include="CustomDialogs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PowerToysSetupCustomActions\PowerToysSetupCustomActions.vcxproj">
<Name>PowerToysSetupCustomActions</Name>
<Project>{32f3882b-f2d6-4586-b5ed-11e39e522bd3}</Project>
<Private>True</Private>
<DoNotHarvest>True</DoNotHarvest>
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
</ProjectReference>
</ItemGroup>
2019-10-10 03:21:21 +08:00
<ItemGroup>
<Content Include="packages.config" />
</ItemGroup>
2020-03-05 04:37:32 +08:00
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
<Error Text="The WiX Toolset v3 build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
</Target>
2019-10-10 03:21:21 +08:00
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
2022-05-30 17:38:36 +08:00
<Error Condition="!Exists('..\wix.props')" Text="$([System.String]::Format('$(ErrorText)', '..\wix.props'))" />
2019-09-05 00:26:26 +08:00
</Target>
<!--
To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Wix.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
2022-01-26 04:02:10 +08:00
<Target Name="BeforeBuild">
2022-02-07 22:08:30 +08:00
<HeatDirectory Directory="..\..\src\modules\previewpane\MonacoPreviewHandler\monacoSRC"
PreprocessorVariable="var.MonacoSRCHarvestPath"
OutputFile="MonacoSRC.wxs"
ComponentGroupName="MonacoSRCHeatGenerated"
DirectoryRefId="MonacoPreviewHandlerMonacoSRCFolder"
AutogenerateGuids="true"
ToolPath="$(WixToolPath)"
RunAsSeparateProcess="true"
SuppressFragments="true"
SuppressRegistry="true"
SuppressRootDirectory="true" />
2022-01-26 04:02:10 +08:00
</Target>
2019-09-05 00:26:26 +08:00
</Project>