mirror of
https://github.com/containers/podman.git
synced 2025-09-09 21:52:21 +08:00

* Incorporate changes from abandoned #9918: Use dedicated `bin` sub-directories for `windows` and `darwin` when building `podman-remote`. The linux flavor remains under `bin` as before. * Fix MacOS Documentation-generation for release-packaging. The `install-podman-remote-%-docs` target requires local execution of `podman-remote`, but it was assuming GOOS=linux. Fix this by dynamically discovering the local OS/architecture type while still permitting cross-building of MacOS binaries under Linux. * Unify temporary directory/file behavior to use a common template. In case of left-over temporary items left in the repository, update the `clean` target accordingly to remove them. * Fix broken podman-remote-static and MacOS release archive targets mismatching the `podman-remote-%` target. Disambiguate this target for all platforms by spelling each out in full, instead of using a wild-card recipe. * Fix Windows-installer target to properly recognize existing output files and not constantly rebuild every time. * Include the podman version number in the Windows-installer target in case a user downloads multiple releases. * Include a subdirectory containing the podman version number for both `tar.gz` and `zip` targets. This prevents users clobbering existing directories when un-archiving from releases. Signed-off-by: Chris Evich <cevich@redhat.com>
53 lines
2.2 KiB
XML
53 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
|
|
|
<?ifndef var.VERSION?>
|
|
<?error VERSION must be defined via command line argument?>
|
|
<?endif?>
|
|
|
|
<?ifndef var.ManSourceDir?>
|
|
<?define ManSourceDir = "bin/windows" ?>
|
|
<?endif?>
|
|
|
|
<Product Name="Podman $(var.VERSION)" Id="*" UpgradeCode="696BAB5D-CA1F-4B05-B123-320F245B8D6D" Version="$(var.VERSION)" Language="1033" Manufacturer="Red Hat Inc.">
|
|
|
|
<Package Id="*" Keywords="Installer" Description="Red Hat's Podman $(var.VERSION) Installer" Comments="Apache 2.0 License" Manufacturer="Red Hat Inc." InstallScope="perMachine" InstallerVersion="100" Compressed="yes"/>
|
|
<Media Id="1" Cabinet="Podman.cab" EmbedCab="yes"/>
|
|
<Property Id="DiskPrompt" Value="Red Hat's Podman $(var.VERSION) Installation"/>
|
|
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
|
|
<Directory Id="ProgramFilesFolder" Name="PFiles">
|
|
<Directory Id="RedHatPFiles" Name="RedHat">
|
|
<Directory Id="INSTALLDIR" Name="Podman">
|
|
<Component Id="INSTALLDIR_Component" Guid="14B310C4-9B5D-4DA5-ADF9-B9D008E4CD82">
|
|
<CreateFolder/>
|
|
</Component>
|
|
<Component Id="MainExecutable" Guid="73752F94-6589-4C7B-ABED-39D655A19714">
|
|
<File Id="520C6E17-77A2-4F41-9611-30FA763A0702" Name="podman.exe" Source="bin/windows/podman.exe" KeyPath="yes"/>
|
|
</Component>
|
|
</Directory>
|
|
</Directory>
|
|
</Directory>
|
|
</Directory>
|
|
|
|
<Property Id="setx" Value="setx.exe"/>
|
|
<CustomAction Id="ChangePath" ExeCommand="PATH "%PATH%;[INSTALLDIR]"" Property="setx" Execute="deferred" Impersonate="yes" Return="check"/>
|
|
|
|
<Feature Id="Complete" Level="1">
|
|
<ComponentRef Id="INSTALLDIR_Component"/>
|
|
<ComponentRef Id="MainExecutable"/>
|
|
<ComponentGroupRef Id="ManFiles"/>
|
|
</Feature>
|
|
|
|
<Icon Id="podman.ico" SourceFile="contrib/msi/podman-logo.ico"/>
|
|
<Property Id="ARPPRODUCTICON" Value="podman.ico"/>
|
|
|
|
<InstallExecuteSequence>
|
|
<RemoveExistingProducts Before="InstallInitialize"/>
|
|
<Custom Action="ChangePath" After="InstallServices">NOT Installed</Custom>
|
|
</InstallExecuteSequence>
|
|
|
|
</Product>
|
|
</Wix>
|