From 7ee70c5846f1f499cecf3531e46b2ae24eefefed Mon Sep 17 00:00:00 2001 From: Abdulwahb Isam Date: Fri, 16 Oct 2026 08:51:46 +0300 Subject: [PATCH] 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. --- AGENTS.md | 7 +++++++ README.md | 14 +++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index a567ce8..6b8b8e0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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= /DArch=x86_64 packaging\windows\disktree.iss` +writes `target\bundle\disktree--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` diff --git a/README.md b/README.md index 8044269..314eed9 100644 --- a/README.md +++ b/README.md @@ -110,9 +110,17 @@ NOTARY_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):