summaryrefslogtreecommitdiffstats
path: root/Tools/msi/exe/exe.wixproj
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/msi/exe/exe.wixproj')
-rw-r--r--Tools/msi/exe/exe.wixproj24
1 files changed, 23 insertions, 1 deletions
diff --git a/Tools/msi/exe/exe.wixproj b/Tools/msi/exe/exe.wixproj
index 50f6f88..8eaf494 100644
--- a/Tools/msi/exe/exe.wixproj
+++ b/Tools/msi/exe/exe.wixproj
@@ -39,6 +39,28 @@
Overwrite="true"
Lines="@(_LicenseFiles->'%(Content)')" />
</Target>
-
+
+ <Target Name="_CopyMiscNews" AfterTargets="PrepareForBuild" Condition="Exists('$(PySourcePath)Misc\NEWS')">
+ <Copy SourceFiles="$(PySourcePath)Misc\NEWS" DestinationFiles="$(BuildPath)NEWS.txt" />
+ </Target>
+
+ <Target Name="_MergeMiscNewsWithBlurb" AfterTargets="PrepareForBuild" Condition="$(Blurb) != '' and !Exists('$(PySourcePath)Misc\NEWS')">
+ <Exec Command="$(Blurb) merge -f &quot;$(BuildPath)NEWS.txt&quot;" WorkingDirectory="$(PCBuild)" />
+ </Target>
+
+ <Target Name="_MergeMiscNewsWithPython" AfterTargets="PrepareForBuild" Condition="$(Blurb) == '' and !Exists('$(PySourcePath)Misc\NEWS')">
+ <ItemGroup>
+ <HostPython Include="$(ExternalsDir)python*\tools\python.exe" />
+ <HostPython Include="@(HostPython)" Condition="Exists(%(FullPath))" />
+ <HostPython Include="py" Condition="@(HostPython) == ''" />
+ </ItemGroup>
+ <PropertyGroup>
+ <HostPython>@(HostPython)</HostPython>
+ <HostPython Condition="$(HostPython.Contains(';'))">$(HostPython.Remove($(HostPython.IndexOf(';'))))</HostPython>
+ </PropertyGroup>
+ <Exec Command="&quot;$(HostPython)&quot; -m pip install -U blurb" WorkingDirectory="$(PCBuild)" />
+ <Exec Command="&quot;$(HostPython)&quot; -m blurb merge -f &quot;$(BuildPath)NEWS.txt&quot;" WorkingDirectory="$(PCBuild)" />
+ </Target>
+
<Import Project="..\msi.targets" />
</Project> \ No newline at end of file