Repository navigation
Add Windows support, 1.2.0 - #24
Merged
Merged
Conversation
Rufust now runs natively on Windows 10 and 11 (x64) alongside Linux. The interface, planner, helper protocol, image analysis, Windows-media layout, answer files, and boot records are shared; device discovery, privilege, and the disk engine have Windows implementations. - Discovery enumerates disk interfaces with zero-access storage IOCTLs and protects the disk holding Windows, the system partition, page files, and spanned volumes; virtual disks are never listed. Hot-plug polls disks and volumes. - The window never runs as administrator. Each operation runs in an elevated copy of rufust.exe, approved through UAC, that serves one request over two private named pipes and is accepted only by its process ID. Cancellation is a line on the control pipe. - The engine revalidates the target, locks and dismounts its volumes, partitions with the disk IOCTLs, formats with Windows' FormatEx and a built-in large-FAT32 formatter (after upstream's FormatLargeFAT32), decodes gzip/bzip2/xz/lzma/zstd/zip in process, attaches VHD/VHDX read-only, builds Windows installer media with UEFI:NTFS and BIOS boot records, and verifies. - Desktop integration: the common Open dialog, the app-mode theme, %APPDATA% settings, regional options from Windows, and an embedded Rufus icon with an asInvoker manifest. - Linux code is gated, not changed; shared progress code moved to engine.rs. An elevated script tests the engine end to end on throwaway VHDX disks, and CI and the release workflow gain Windows jobs producing a portable zip. The README, project context, capability matrix, safety, architecture, building, and a new Windows document describe the port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The release workflow now compiles packaging/windows/rufust.iss with Inno Setup into rufust-<version>-windows-x86_64-setup.exe next to the portable zip. Setup installs per machine into Program Files with a Start menu entry and uninstaller, launches the app as the original user (never elevated), and is verified in CI by a silent install and uninstall. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.2.0 is the first release with Windows 10 and 11 support: an installer and a portable zip next to the Linux packages and AppImage. Bump the workspace, app, and package versions, add the Debian, RPM, and AppStream changelog entries, and update the release notes and project context. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rufust only ran on Linux: discovery read sysfs, writes went through udisks2 or a polkit helper, and the build failed on Windows. This adds a native Windows 10/11 (x64) build next to Linux, leaving the Linux code paths unchanged.
How
rufust-platform/src/windows.rs): disk interfaces queried with zero-access storage IOCTLs, so no elevation is needed. The disk holding Windows, the system partition, page files, and spanned volumes are marked as blocking risks, and virtual disks are never listed.rufust.exe --elevated-worker <pipe>, started through UAC. It serves one request over two single-instance, local-only named pipes, and the window accepts the pipe client only if it is that process. Cancel is a line on the control pipe.rufust-helper/src/windows/):IOCTL_DISK_CREATE_DISK/SET_DRIVE_LAYOUT_EX;FormatEx, plus a built-in large-FAT32 formatter ported from upstream'sFormatLargeFAT32;virtdisk.dll;%APPDATA%settings, regional options read from Windows, and an embedded Rufus icon with anasInvokermanifest.cfgand otherwise unchanged. Progress reporting and Windows-media planning shared by both engines moved toengine.rs.Verification
cargo test --workspaceandcargo clippy --workspace --all-targets -- -D warningspass on Windows; clippy also passes with--target x86_64-unknown-linux-gnu.scripts/windows/vhd-tests.ps1(elevated) passes on throwaway VHDX disks. It refuses any disk that is not file-backed virtual storage. It covers:Windowsruns all of the above onwindows-2022. The release workflow addsrufust-<version>-windows-x86_64.ziptoSHA256SUMS.Not yet done: a smoke test on physical USB media, boot tests of Windows-built media, and Authenticode signing. No version bump or release is included.
🤖 Generated with Claude Code