mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-05 20:47:45 +01:00
f64ae3bf3c
A native, pure-Rust app that shows anyone how a piece of software works, with evidence-backed answers, then helps them rebuild it. It ships a desktop app, a CLI and an MCP server, all driven by one engine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
108 lines
6.4 KiB
XML
108 lines
6.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Craft Anything MSI (WiX Toolset v5: `dotnet tool install -g wix`, plus the UI and Util extensions:
|
|
`wix extension add -g WixToolset.UI.wixext/5.0.2 WixToolset.Util.wixext/5.0.2`). Built by package.ps1:
|
|
|
|
wix build craft-anything.wxs -arch x64 -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext
|
|
-culture en-US -loc craft-anything.en-us.wxl -d Version=1.2.3 -d DisplayVersion=1.2.3-rc.1
|
|
-d BinDir=... -d IconPath=... -d BannerBmp=... -d DialogBmp=... -d HasCli=1 -o out.msi
|
|
|
|
Per-machine install with a setup wizard that names the version: Welcome, install folder
|
|
(Program Files\Craft Anything by default, remembered for upgrades), Ready, a progress page, and a
|
|
Finish page with a ticked "Launch Craft Anything" box. Installs a Start Menu shortcut and an
|
|
App Paths entry (Win+R "craft-anything"), plus craft-anything-cli when HasCli=1. No file types are
|
|
claimed: Craft Anything opens anything, so it never takes over another app's default.
|
|
`msiexec /qn` still installs silently.
|
|
|
|
UpgradeCode is fixed for Craft Anything forever (generated once; never reuse another app's).
|
|
-->
|
|
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
|
|
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
|
|
<Package
|
|
Name="Craft Anything"
|
|
Manufacturer="Learning Machines LLC"
|
|
Version="$(var.Version)"
|
|
UpgradeCode="8F69A8B5-4384-479B-B3FF-93C5374BCA51"
|
|
Scope="perMachine"
|
|
Compressed="yes"
|
|
Language="1033">
|
|
<SummaryInformation Description="Craft Anything: find out how any software works" Manufacturer="Learning Machines LLC" />
|
|
<!-- Same-version upgrades let successive pre-releases of one X.Y.Z replace each other
|
|
(MSI versions are numeric, so 1.2.3-rc.1 and 1.2.3-rc.2 are both 1.2.3). -->
|
|
<MajorUpgrade AllowSameVersionUpgrades="yes"
|
|
DowngradeErrorMessage="A newer version of Craft Anything is already installed." />
|
|
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
|
|
|
|
<!-- MSI caches this icon using its Id as the filename. Advertised shortcuts to an
|
|
.exe need an .exe icon identifier (ICE50), even when the source is an ICO. -->
|
|
<Icon Id="CraftAnythingIcon.exe" SourceFile="$(var.IconPath)" />
|
|
<Property Id="ARPPRODUCTICON" Value="CraftAnythingIcon.exe" />
|
|
<Property Id="ARPURLINFOABOUT" Value="https://getartcraft.com/apps/craft-anything" />
|
|
<Property Id="ARPURLUPDATEINFO" Value="https://getartcraft.com/apps/craft-anything" />
|
|
<Property Id="ARPHELPLINK" Value="https://discord.gg/artcraft" />
|
|
|
|
<StandardDirectory Id="ProgramFiles6432Folder">
|
|
<Directory Id="INSTALLFOLDER" Name="Craft Anything" />
|
|
</StandardDirectory>
|
|
<StandardDirectory Id="ProgramMenuFolder" />
|
|
|
|
<!-- An upgrade installs where the user put the previous version (written by CraftAnythingApp). -->
|
|
<Property Id="INSTALLFOLDER">
|
|
<RegistrySearch Id="PreviousInstallFolder" Root="HKLM" Key="Software\Craft Anything" Name="InstallDir" Type="raw" />
|
|
</Property>
|
|
|
|
<Feature Id="Main" Title="Craft Anything" Level="1">
|
|
<ComponentGroupRef Id="CraftAnythingFiles" />
|
|
</Feature>
|
|
|
|
<!-- The setup wizard: WixUI_InstallDir without its licence page (the code is MIT OR
|
|
Apache-2.0; there is nothing to accept). A later NewDialog on the same button wins. -->
|
|
<ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER" />
|
|
<UI>
|
|
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" Order="2" Condition="NOT Installed" />
|
|
<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2" />
|
|
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchCraftAnything"
|
|
Condition="WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 AND NOT Installed" />
|
|
</UI>
|
|
<!-- Our own art, generated by package.ps1 from the app icon (not WiX's stock bitmaps). -->
|
|
<WixVariable Id="WixUIBannerBmp" Value="$(var.BannerBmp)" />
|
|
<WixVariable Id="WixUIDialogBmp" Value="$(var.DialogBmp)" />
|
|
|
|
<!-- The full version (Version is numeric, so it drops a pre-release tag), shown on the wizard's
|
|
pages through craft-anything.en-us.wxl. -->
|
|
<Property Id="CraftAnythingVersion" Value="$(var.DisplayVersion)" />
|
|
|
|
<!-- Finish page: say where to find the app, and offer to start it (ticked by default). -->
|
|
<Property Id="WIXUI_EXITDIALOGOPTIONALTEXT" Value="Craft Anything $(var.DisplayVersion) is installed. You can start it any time from the Start menu." />
|
|
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch Craft Anything" />
|
|
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" />
|
|
<Property Id="WixShellExecTarget" Value="[#CraftAnythingExe]" />
|
|
<!-- Runs in the wizard's own (unelevated) process, so the app starts as the user, not as admin. -->
|
|
<CustomAction Id="LaunchCraftAnything" BinaryRef="Wix4UtilCA_$(sys.BUILDARCHSHORT)" DllEntry="WixShellExec" Impersonate="yes" Return="ignore" />
|
|
</Package>
|
|
|
|
<Fragment>
|
|
<ComponentGroup Id="CraftAnythingFiles" Directory="INSTALLFOLDER">
|
|
<Component Id="CraftAnythingApp" Guid="60FCAC4D-3674-43B5-824E-D73D95F95627">
|
|
<File Id="CraftAnythingExe" Source="$(var.BinDir)\craft-anything.exe" KeyPath="yes">
|
|
<Shortcut Id="StartMenuShortcut" Directory="ProgramMenuFolder" Name="Craft Anything"
|
|
Description="Find out how any software works, then craft your own" WorkingDirectory="INSTALLFOLDER" Advertise="yes"
|
|
Icon="CraftAnythingIcon.exe" IconIndex="0" />
|
|
</File>
|
|
|
|
<!-- The "Open with" app list (any file) and the Run dialog (Win+R "craft-anything"). -->
|
|
<RegistryValue Root="HKLM" Key="Software\Classes\Applications\craft-anything.exe" Name="FriendlyAppName" Value="Craft Anything" Type="string" />
|
|
<RegistryValue Root="HKLM" Key="Software\Classes\Applications\craft-anything.exe\shell\open\command" Value=""[#CraftAnythingExe]" "%1"" Type="string" />
|
|
<RegistryValue Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\App Paths\craft-anything.exe" Value="[#CraftAnythingExe]" Type="string" />
|
|
<RegistryValue Root="HKLM" Key="Software\Craft Anything" Name="InstallDir" Value="[INSTALLFOLDER]" Type="string" />
|
|
</Component>
|
|
|
|
<?if $(var.HasCli) = 1 ?>
|
|
<Component Id="CraftAnythingCli">
|
|
<File Id="CraftAnythingCliExe" Source="$(var.BinDir)\craft-anything-cli.exe" KeyPath="yes" />
|
|
</Component>
|
|
<?endif?>
|
|
</ComponentGroup>
|
|
</Fragment>
|
|
</Wix>
|