Commit Graph
9 Commits
Author SHA1 Message Date
Tobi Lutke a8da67feac feat: unify disktree-scan into disktree-cli, package predictable release binaries, and offer one-click SSH install 2026-11-25 17:23:26 -05:00
Tobi Lutke b72ec05b54 Merge pull request #108 from ai94iq/feat/windows-installer 2026-11-25 09:52:13 -05:00
Tobi Lutke 2c22ed4d00 build: embed static Linux scanners and deploy them on demand 2026-10-22 16:22:26 -04:00
Abdulwahb Isam c8a9336acb disktree: test: build and check the Windows setup on every pull request
CI compiled nothing of the installer, so a broken disktree.iss would first
fail inside a release, after its draft exists, and the Arm64 setup had
never been built at all. The Windows job now compiles the x64 setup and
the Windows aarch64 job the Arm64 one; both run check-setup.ps1, which
installs it silently for the current user, checks the exe, Start menu and
desktop shortcuts and the uninstall entry, installs again as an upgrade
(one entry left), uninstalls and checks nothing remains.

install-inno.ps1 takes over the pinned, hash-checked Inno Setup install
from release.yml and now fails on a non-zero installer exit or a missing
ISCC.exe instead of leaving the next step to report it.

Verified locally on Windows 11 x64: both scripts pass, and the CI
Installer step body, run as written, compiles a 0.0.0 setup and reports
"setup installs, upgrades and uninstalls cleanly". Upgrading while
disktree runs closes it through Restart Manager without a reboot. The
Arm64 job has not run yet.
2026-10-16 09:02:06 +03:00
Abdulwahb Isam 90465b1dce disktree: feat: add an Inno Setup script for a Windows installer
packaging/windows/disktree.iss builds disktree-<version>-<arch>-windows-
setup.exe from the release binary. It installs for the current user with
no UAC prompt by default (the first page offers all users), adds a Start
menu entry, a desktop shortcut and an uninstaller in Settings > Apps, and
upgrades in place, keyed by a fixed AppId. x86_64 and aarch64 each get
their own setup.

Verified with Inno Setup 7.1.0 on Windows 11 x64: ISCC compiles cleanly;
leaving out /DArch or passing an unknown one aborts the compile; a silent
/CURRENTUSER install creates the exe, both shortcuts and the uninstall
entry, and disktree launches; a second install upgrades with one uninstall
entry; unins000.exe removes all of it including the install folder.
2026-10-16 08:51:45 +03:00
Sebastian Sieber cbdfe1c332 macOS support: native Trash, APFS-aware scans, a signed app bundle
disktree built and drew on macOS already, through GPUI's Metal backend,
but the Linux plumbing underneath did not carry over. This makes it work
well there, without unsafe code, and tightens removal safety for every
platform on the way.

Trash and removal
- On macOS always the system Trash, through NSFileManager (the trash
  crate): the same move as Finder's, into the item's own disk's Trash.
  gio/trash-put/XDG would put files in ~/.local/share/Trash, which Finder
  never shows.
- Refuse a directory holding the home directory (/Users is on the same
  volume as / on macOS) or a system tree (/opt holds /opt/homebrew); add
  /System, /Library, /private, /opt/homebrew, /cores, /Network.
- Refuse a directory with a mount inside it; on macOS the mount list comes
  from /sbin/mount, read on a background thread.
- Permanent deletion walks the tree itself and stops at a mount boundary,
  like rm -rf --one-file-system (the walker is from #10).
- Guards see through /System/Volumes/Data spellings and, on macOS, case.

Scanning
- Skip /System/Volumes/Data when scanning /: it is /Users, /Applications
  and the rest again under firmlinks, so / was counted twice.
- Whole disk (g, --disk) works: the disk root and device come from statfs.
- Never list cloud-only (dataless) iCloud/File Provider folders, which
  would download them.
- Keep a file's identity only when it has more than one name.

App
- Explain unreadable items when Full Disk Access is missing, with a button
  to the privacy settings.
- A menu bar: Open Folder… (⌘O), Show in Finder (o, ⌘⇧R), Rescan (⌘R),
  Hide, Quit; closing the window quits; other ⌘ chords are not read as
  plain letters; help shows ⌘.
- Follow the system light/dark appearance when no Omarchy theme exists.
- Worth a look knows Xcode DerivedData, DeviceSupport and ~/Library/Logs.
- git: skipped without the developer tools (its stub opens a dialog), and
  never runs a checkout's programs: fsmonitor, hooks and pager off, and no
  status for a checkout that defines its own filter drivers.

Packaging
- cargo xtask bundle builds disktree.app and a zip: Info.plist (bundle id
  io.github.tobi.disktree, macOS 11+), an icon drawn from an SVG on the
  macOS grid, ad-hoc or Developer ID signing, and --notarize.
- make install on macOS puts the app in ~/Applications and links
  ~/.local/bin/disktree to it.
- CI lints, tests and bundles on macOS; the release adds an arm64 macOS
  zip, signed and notarized when the repository has the Apple secrets.
2026-09-25 17:29:55 +08:00
Tobi Lutke 92f4031216 0.9.0: screenshot, CI, and release builds
- The README opens with a screenshot, and says how to install a release.
- CI lints and tests every push and pull request on a pinned toolchain.
- Pushing a v* tag builds a release on the oldest supported Ubuntu (for
  glibc reach), checks the tag against Cargo.toml, runs the tests, and
  publishes disktree-<version>-x86_64-linux.tar.gz with a checksum. The
  archive carries install.sh, which installs the binary, desktop entry
  and icon into ~/.local without a Rust toolchain.
- The desktop entry passes a path (%f), not a URI, to disktree.
2026-09-24 17:13:38 -05:00
Tobi Lutke f67fd56174 Whole-disk launcher action; README for the redesign 2026-09-24 16:42:08 -05:00
Tobi Lutke 1b5588f114 Install with make: binary, desktop entry and icon
`make install` puts disktree in ~/.local with a desktop entry for the
launcher and a file manager's "Open with" for directories. The build step
always asks cargo, so a stale binary is never installed.
2026-09-24 15:56:19 -05:00