disktree: docs: document the Windows setup

README: the setup is the default Windows download, per-user unless all
users is chosen, unsigned so SmartScreen needs More info then Run anyway;
the zip remains. AGENTS.md: how to compile the setup locally, and that its
AppId must never change.

Verified: cargo xtask lint is green.
This commit is contained in:
Abdulwahb Isam
2026-10-16 08:51:46 +03:00
parent c49119aef3
commit 7ee70c5846
2 changed files with 18 additions and 3 deletions
+7
View File
@@ -36,6 +36,13 @@ On macOS `make install` installs `target/bundle/disktree.app` into
`packaging/macos/` (the `Info.plist` template and the icon's SVG). The bundle
identifier there keys every macOS permission grant; do not change it lightly.
On Windows the release also ships a setup program, compiled by Inno Setup 7
from `packaging/windows/disktree.iss` after `cargo build --release`:
`ISCC.exe /DAppVersion=<version> /DArch=x86_64 packaging\windows\disktree.iss`
writes `target\bundle\disktree-<version>-x86_64-windows-setup.exe`. Its
`AppId` is how upgrades and the uninstaller find an existing install; never
change it.
`cargo xtask lint` is the gate. It must be green before anything is called
done, and it must not fix anything: a red local run is the same signal CI gives.
On Windows, where there is no make, run `cargo xtask lint`, `cargo xtask test`
+11 -3
View File
@@ -110,9 +110,17 @@ NOTARY_PROFILE=<profile> cargo xtask bundle \
### Windows
On Windows 10 or 11, download `disktree-*-x86_64-windows.zip`
(`aarch64-windows` on ARM) from the same release, unpack it anywhere and run
`disktree.exe`. Or build it with Rust 1.97 or newer, from
On Windows 10 or 11, download `disktree-*-x86_64-windows-setup.exe`
(`aarch64-windows` on ARM, Windows 11) from the same release and run it. It
installs for you alone, with no administrator prompt, unless you choose all
users on its first page; it adds disktree to the Start menu and the desktop,
and to **Settings > Apps** to uninstall. A newer setup upgrades in place.
The setup is not signed, so SmartScreen says "Windows protected your PC";
choose **More info**, then **Run anyway**.
To skip installing, download `disktree-*-x86_64-windows.zip` instead, unpack
it anywhere and run `disktree.exe`. Or build it with Rust 1.97 or newer, from
[rustup](https://rustup.rs), and the MSVC toolchain (Visual Studio Build
Tools, C++ workload):