You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
3.8 KiB

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?if $(sys.BUILDARCH)="x64" ?>
<?define ArchSuffix=" 64-bit" ?>
<?else?>
<?define ArchSuffix="" ?>
<?endif?>
<?define ProductName="Wasmtime $(env.WT_VERSION) $(var.ArchSuffix))" ?>
<?define BaseRegKey="Software\[Manufacturer]\Wasmtime ($(sys.BUILDARCH))\$(env.WT_VERSION)" ?>
<Product Id="*" UpgradeCode="A00EBA3C-5C90-42DA-8176-3D46447D2211" Version="$(env.WT_VERSION)" Language="1033" Name="Wasmtime" Manufacturer="Crane Station">
<Package InstallerVersion="300" Compressed="yes"/>
<Media Id="1" Cabinet="wasmtime.cab" EmbedCab="yes" />
<InstallUISequence>
<FindRelatedProducts After="AppSearch" />
</InstallUISequence>
<InstallExecuteSequence>
<FindRelatedProducts After="AppSearch" />
<RemoveExistingProducts Before="InstallInitialize" />
</InstallExecuteSequence>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder">
<Directory Id="INSTALLDIR" Name="Wasmtime">
<Directory Id="BINDIR" Name="bin"/>
</Directory>
</Directory>
<!-- Record our install location -->
<Component Id="InstallDir" Guid="*">
<RegistryKey Root='HKLM' Key='$(var.BaseRegKey)'>
<RegistryValue Type='string' Name='InstallDir' Value='[INSTALLDIR]'/>
</RegistryKey>
</Component>
<!-- Add install dir to PATH -->
<Component Id="PathEnvPerMachine" Guid="*">
<!-- <Condition>ALLUSERS=1 OR (ALLUSERS=2 AND Privileged)</Condition> -->
<RegistryValue Root="HKMU" Key="$(var.BaseRegKey)" Name="PathEnvPerMachine" Type="string" Value="1" KeyPath="yes" />
<!-- [INSTALLDIR] contains trailing backslash -->
<Environment Id="PathPerMachine" Name="PATH" Value="[INSTALLDIR]bin" Permanent="no" Part="last" Action="set" System="yes" />
</Component>
<Component Id="PathEnvPerUser" Guid="*">
<!-- <Condition>ALLUSERS="" OR (ALLUSERS=2 AND (NOT Privileged))</Condition> -->
<RegistryValue Root="HKMU" Key="$(var.BaseRegKey)" Name="PathEnvPerUser" Type="string" Value="1" KeyPath="yes" />
<Environment Id="PathPerUser" Name="PATH" Value="[INSTALLDIR]bin" Permanent="no" Part="last" Action="set" System="no" />
</Component>
</Directory>
<DirectoryRef Id="INSTALLDIR">
<Component Id="LICENSE" Guid="*">
<File Id="LICENSE" Source="LICENSE" KeyPath="yes" Checksum="yes"/>
</Component>
<Component Id="README" Guid="*">
<File Id="README.md" Source="README.md" KeyPath="yes" Checksum="yes"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="BINDIR">
<Component Id="wasmtime.exe" Guid="*">
Build &#34;min&#34; artifacts on CI (#7315) * riscv64: Extend distance trampolines can jump Use a PIC-friendly set of instructions to enable destination of the trampoline to be more than 4k away from the tail call site of the trampoline itself. * Build &#34;min&#34; artifacts on CI This commit updates the binary artifacts produced by CI to include &#34;min&#34; builds where all default features are disabled. Additionally all the stops are pulled in terms of build flags, nightly versions, etc, to get a build that is as small as possible without actual source code changes. This effectively codifies the instructions in #7282 into an easily downloadable artifact. No new tarballs are created for github releases but instead tarballs that previously had a `wasmtime` executable for example now have a `wasmtime-min` executable. Furthermore the C API which previously had `libwasmtime.so` for example now has `libwasmtime-min.so`. The intention is that the minimum-size artifacts are handy for determining a rough size of Wasmtime but they&#39;re not so important that it seems worthwhile to dedicate entire release entries for. CI is refactored to support these minimum builds with separate builders. This means that a single tarball produced as a final result is actually two separate tarballs merged together, one for the normal build we do today plus a new &#34;min&#34; tarball produced on the new &#34;min&#34; builders. Various scripts and CI organization has been adjusted accordingly. While here I went ahead and enabled `panic=abort` and debuginfo stripping in our current release artifacts. While this doesn&#39;t affect a whole lot it&#39;s less to upload to GitHub Actions all the time. * Fix Windows unzip
1 year ago
<File Id="wasmtime.exe" Source="target\x86_64-pc-windows-msvc\release\wasmtime.exe" KeyPath="yes" Checksum="yes"/>
</Component>
</DirectoryRef>
<Feature Id="InstallWasmtime" Title="Wasmtime" Level="1">
<ComponentRef Id="wasmtime.exe" />
<ComponentRef Id="LICENSE" />
<ComponentRef Id="README" />
<ComponentRef Id="InstallDir" />
</Feature>
<Feature Id="AddToPath"
Title="Add to PATH"
Description="Add Wasmtime to PATH environment variable"
Level="1"
AllowAdvertise="no">
<ComponentRef Id="PathEnvPerMachine" />
<ComponentRef Id="PathEnvPerUser" />
</Feature>
<CustomActionRef Id="WixBroadcastEnvironmentChange" />
</Product>
</Wix>