diff options
| author | Bob Arnson <bob@firegiant.com> | 2025-04-27 11:21:34 -0400 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2025-06-11 23:34:42 -0400 |
| commit | 7051e6a5fdc8965289fbc34d0de2a78dae14e62e (patch) | |
| tree | 4a6ba3d354089b0abdf1c295a9b79b5e56ea39f1 /src/test | |
| parent | fddc154029b838c2fd83a2eee09d53468dd4cf08 (diff) | |
| download | wix-7051e6a5fdc8965289fbc34d0de2a78dae14e62e.tar.gz wix-7051e6a5fdc8965289fbc34d0de2a78dae14e62e.tar.bz2 wix-7051e6a5fdc8965289fbc34d0de2a78dae14e62e.zip | |
Add `Payloads` element to harvest bundle payloads.
Implements https://github.com/wixtoolset/issues/issues/9049
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/burn/TestData/Manual/BundleB/Bundle.wxs | 4 | ||||
| -rw-r--r-- | src/test/burn/TestData/Manual/BundleB/BundleB.wixproj | 14 | ||||
| -rw-r--r-- | src/test/burn/TestData/Manual/BundleB/BundleB.wxs | 2 | ||||
| -rw-r--r-- | src/test/burn/TestData/Manual/BundleB/ba.xslt | 21 | ||||
| -rw-r--r-- | src/test/burn/TestData/Manual/BundleB/package.xslt | 21 |
5 files changed, 3 insertions, 59 deletions
diff --git a/src/test/burn/TestData/Manual/BundleB/Bundle.wxs b/src/test/burn/TestData/Manual/BundleB/Bundle.wxs index 8c670577..248ec05c 100644 --- a/src/test/burn/TestData/Manual/BundleB/Bundle.wxs +++ b/src/test/burn/TestData/Manual/BundleB/Bundle.wxs | |||
| @@ -30,11 +30,11 @@ | |||
| 30 | <?elseif $(var.BA) = "hyperlinkLicense"?> | 30 | <?elseif $(var.BA) = "hyperlinkLicense"?> |
| 31 | <BootstrapperApplication> | 31 | <BootstrapperApplication> |
| 32 | <bal:WixStandardBootstrapperApplication LicenseUrl="" Theme="hyperlinkLicense" /> | 32 | <bal:WixStandardBootstrapperApplication LicenseUrl="" Theme="hyperlinkLicense" /> |
| 33 | <PayloadGroupRef Id="BAPayloads" /> | 33 | <Payloads Include="$(sys.SOURCEFILEDIR)\BAPayloads\**" /> |
| 34 | </BootstrapperApplication> | 34 | </BootstrapperApplication> |
| 35 | <?else?> | 35 | <?else?> |
| 36 | <BootstrapperApplicationRef Id="$(var.BA)"> | 36 | <BootstrapperApplicationRef Id="$(var.BA)"> |
| 37 | <PayloadGroupRef Id="BAPayloads" /> | 37 | <Payloads Include="$(sys.SOURCEFILEDIR)\BAPayloads\**" /> |
| 38 | </BootstrapperApplicationRef> | 38 | </BootstrapperApplicationRef> |
| 39 | <?endif?> | 39 | <?endif?> |
| 40 | 40 | ||
diff --git a/src/test/burn/TestData/Manual/BundleB/BundleB.wixproj b/src/test/burn/TestData/Manual/BundleB/BundleB.wixproj index 36792c2b..d0b05bc1 100644 --- a/src/test/burn/TestData/Manual/BundleB/BundleB.wixproj +++ b/src/test/burn/TestData/Manual/BundleB/BundleB.wixproj | |||
| @@ -8,24 +8,10 @@ | |||
| 8 | </PropertyGroup> | 8 | </PropertyGroup> |
| 9 | 9 | ||
| 10 | <ItemGroup> | 10 | <ItemGroup> |
| 11 | <HarvestDirectory Include="BAPayloads"> | ||
| 12 | <ComponentGroupName>BAPayloads</ComponentGroupName> | ||
| 13 | <DirectoryRefId>BAPayloads</DirectoryRefId> | ||
| 14 | <Transforms>ba.xslt</Transforms> | ||
| 15 | </HarvestDirectory> | ||
| 16 | <HarvestDirectory Include="PackagePayloads"> | ||
| 17 | <ComponentGroupName>PackagePayloads</ComponentGroupName> | ||
| 18 | <DirectoryRefId>PackagePayloads</DirectoryRefId> | ||
| 19 | <Transforms>package.xslt</Transforms> | ||
| 20 | </HarvestDirectory> | ||
| 21 | </ItemGroup> | ||
| 22 | |||
| 23 | <ItemGroup> | ||
| 24 | <ProjectReference Include="..\PackageA\PackageA.wixproj" /> | 11 | <ProjectReference Include="..\PackageA\PackageA.wixproj" /> |
| 25 | </ItemGroup> | 12 | </ItemGroup> |
| 26 | 13 | ||
| 27 | <ItemGroup> | 14 | <ItemGroup> |
| 28 | <PackageReference Include="WixToolset.Heat" /> | ||
| 29 | <PackageReference Include="WixToolset.BootstrapperApplications.wixext" /> | 15 | <PackageReference Include="WixToolset.BootstrapperApplications.wixext" /> |
| 30 | </ItemGroup> | 16 | </ItemGroup> |
| 31 | 17 | ||
diff --git a/src/test/burn/TestData/Manual/BundleB/BundleB.wxs b/src/test/burn/TestData/Manual/BundleB/BundleB.wxs index 54082131..f1a04445 100644 --- a/src/test/burn/TestData/Manual/BundleB/BundleB.wxs +++ b/src/test/burn/TestData/Manual/BundleB/BundleB.wxs | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | <Fragment> | 4 | <Fragment> |
| 5 | <PackageGroup Id="BundlePackages"> | 5 | <PackageGroup Id="BundlePackages"> |
| 6 | <MsiPackage Id="PackageA" SourceFile="$(var.PackageA.TargetPath)"> | 6 | <MsiPackage Id="PackageA" SourceFile="$(var.PackageA.TargetPath)"> |
| 7 | <PayloadGroupRef Id="PackagePayloads" /> | 7 | <Payloads Include="$(sys.SOURCEFILEDIR)\PackagePayloads\**" /> |
| 8 | </MsiPackage> | 8 | </MsiPackage> |
| 9 | </PackageGroup> | 9 | </PackageGroup> |
| 10 | </Fragment> | 10 | </Fragment> |
diff --git a/src/test/burn/TestData/Manual/BundleB/ba.xslt b/src/test/burn/TestData/Manual/BundleB/ba.xslt deleted file mode 100644 index 54bc7fe6..00000000 --- a/src/test/burn/TestData/Manual/BundleB/ba.xslt +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
| 3 | xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" | ||
| 4 | xmlns:wix="http://wixtoolset.org/schemas/v4/wxs" | ||
| 5 | > | ||
| 6 | <xsl:output method="xml" indent="yes"/> | ||
| 7 | |||
| 8 | <xsl:template match="@* | node()"> | ||
| 9 | <xsl:copy> | ||
| 10 | <xsl:apply-templates select="@* | node()"/> | ||
| 11 | </xsl:copy> | ||
| 12 | </xsl:template> | ||
| 13 | |||
| 14 | <xsl:template match="wix:Payload" > | ||
| 15 | <xsl:copy> | ||
| 16 | <xsl:apply-templates select="@* | node()"/> | ||
| 17 | <xsl:attribute name="Id">ba_<xsl:value-of select="substring(@SourceFile, 11)" /></xsl:attribute> | ||
| 18 | <xsl:attribute name="SourceFile">BAPayloads<xsl:value-of select="substring(@SourceFile, 10)" /></xsl:attribute> | ||
| 19 | </xsl:copy> | ||
| 20 | </xsl:template> | ||
| 21 | </xsl:stylesheet> | ||
diff --git a/src/test/burn/TestData/Manual/BundleB/package.xslt b/src/test/burn/TestData/Manual/BundleB/package.xslt deleted file mode 100644 index 304ff78b..00000000 --- a/src/test/burn/TestData/Manual/BundleB/package.xslt +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
| 3 | xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" | ||
| 4 | xmlns:wix="http://wixtoolset.org/schemas/v4/wxs" | ||
| 5 | > | ||
| 6 | <xsl:output method="xml" indent="yes"/> | ||
| 7 | |||
| 8 | <xsl:template match="@* | node()"> | ||
| 9 | <xsl:copy> | ||
| 10 | <xsl:apply-templates select="@* | node()"/> | ||
| 11 | </xsl:copy> | ||
| 12 | </xsl:template> | ||
| 13 | |||
| 14 | <xsl:template match="wix:Payload" > | ||
| 15 | <xsl:copy> | ||
| 16 | <xsl:apply-templates select="@* | node()"/> | ||
| 17 | <xsl:attribute name="Id">package_<xsl:value-of select="substring(@SourceFile, 11)" /></xsl:attribute> | ||
| 18 | <xsl:attribute name="SourceFile">PackagePayloads<xsl:value-of select="substring(@SourceFile, 10)" /></xsl:attribute> | ||
| 19 | </xsl:copy> | ||
| 20 | </xsl:template> | ||
| 21 | </xsl:stylesheet> | ||
