|
18 | 18 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> |
19 | 19 | <OutputPath>..\Build\</OutputPath> |
20 | 20 | <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> |
| 21 | + <DefineConstants>PackageDir=$(SolutionDir)Build\Package\</DefineConstants> |
21 | 22 | </PropertyGroup> |
22 | 23 | <ItemGroup> |
23 | 24 | <Compile Include="C_QuickLookComponents.wxs" /> |
|
32 | 33 | <ItemGroup> |
33 | 34 | <Content Include="gpl.rtf" /> |
34 | 35 | </ItemGroup> |
35 | | - <ItemGroup> |
36 | | - <ProjectReference Include="..\QuickLook\QuickLook.csproj"> |
37 | | - <Name>QuickLook</Name> |
38 | | - <Project>{8b4a9ce5-67b5-4a94-81cb-3771f688fdeb}</Project> |
39 | | - <Private>True</Private> |
40 | | - <DoNotHarvest>True</DoNotHarvest> |
41 | | - <RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups> |
42 | | - <RefTargetDir>INSTALLFOLDER</RefTargetDir> |
43 | | - </ProjectReference> |
44 | | - </ItemGroup> |
45 | 36 | <Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " /> |
46 | 37 | <Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " /> |
47 | 38 | <Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' "> |
48 | 39 | <Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" /> |
49 | 40 | </Target> |
50 | 41 | <PropertyGroup> |
51 | | - <PreBuildEvent>robocopy "$(SolutionDir)Build\$(Configuration)" "$(SolutionDir)Build\Package" %2a.%2a /e /njh /njs /ndl /nfl /nc /ns /np /xf %2a.pdb /xf %2a.obj /xf %2a.ipdb /xf %2a.iobj /xf %2a.exp /xf %2a.lib /xf %2a.ilk /xf %2a.xml |
| 42 | + <PreBuildEvent>rmdir /S /Q "$(SolutionDir)Build\Package\%2a" |
| 43 | + |
| 44 | +robocopy "$(SolutionDir)Build\$(Configuration)" "$(SolutionDir)Build\Package" %2a.%2a /e /njh /njs /ndl /nfl /nc /ns /np /xf %2a.pdb /xf %2a.obj /xf %2a.ipdb /xf %2a.iobj /xf %2a.exp /xf %2a.lib /xf %2a.ilk /xf %2a.xml |
| 45 | + |
| 46 | +powershell -file "$(SolutionDir)Scripts\sign-package.ps1" |
| 47 | + |
| 48 | +"$(WIX)bin\heat" dir "$(SolutionDir)Build\Package" -dr INSTALLFOLDER -cg QuickLookComponents -gg -g1 -sf -srd -sreg -var "var.PackageDir" -out "$(ProjectDir)C_QuickLookComponents.wxs"</PreBuildEvent> |
| 49 | + </PropertyGroup> |
| 50 | + <PropertyGroup> |
| 51 | + <PostBuildEvent>powershell -file "$(SolutionDir)Scripts\sign-msi.ps1" |
52 | 52 |
|
53 | | -"$(WIX)bin\heat" dir "$(SolutionDir)Build\Package" -dr INSTALLFOLDER -cg QuickLookComponents -gg -g1 -sf -srd -sreg -var "var.QuickLook.TargetDir" -out "$(ProjectDir)C_QuickLookComponents.wxs"</PreBuildEvent> |
| 53 | +powershell -file "$(SolutionDir)Scripts\rename-pkg.ps1"</PostBuildEvent> |
54 | 54 | </PropertyGroup> |
55 | 55 | <!-- |
56 | 56 | To modify your build process, add your task inside one of the targets below and uncomment it. |
|
0 commit comments