Repository navigation
Publish a self-contained Windows download - #2
Merged
Merged
Conversation
Build and test on every push and pull request. A v* tag attaches a single-file win-x64 exe, portable zips, a win-arm64 build, and an Inno Setup installer to a GitHub Release. Pull requests upload those files as artifacts so the publish path can be checked without a public release. Co-authored-by: process631 <process631@users.noreply.github.com>
mt.exe could not read the manifest resource in the self-contained dsweep.exe and stopped the release before the zip and installer were built. Load the manifest from the executable directly, and let the uninstaller finish deleting itself before checking that it is gone. Co-authored-by: process631 <process631@users.noreply.github.com>
The extra application manifest made Windows reject dsweep.exe with a side-by-side configuration error. The .NET host manifest already requests asInvoker and long paths, which is what the publish check looks for. Co-authored-by: process631 <process631@users.noreply.github.com>
The console host requests asInvoker and does not declare longPathAware. dsweep already uses extended paths, so only the app exe is required to carry that flag. Co-authored-by: process631 <process631@users.noreply.github.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.
Summary
DiskSweeper can now be downloaded and run on Windows 10/11 without installing .NET or compiling.
windows-latestbuilds and tests on pushes tomainand on pull requests.v*tag (for examplev1.0.0) publishes a GitHub Release with generated notes. This pull request does not create a release.asInvoker. Fast NTFS scans and the admin-only delete fixes still elevate through the existingrunashelper, so opening the app does not show a UAC prompt.Downloads the release will attach
DiskSweeper-Setup.exeDiskSweeper-win-x64.exeDiskSweeper-win-x64.zipdsweep.exe, the MIT license, and a short readme.DiskSweeper-win-arm64.exe/.zipSHA256SUMS.txtdotnet publishuses--self-contained true,PublishSingleFile,IncludeNativeLibrariesForSelfExtract, andEnableCompressionInSingleFile. CI checks that each exe is a real PE, is large enough to contain the runtime, embedsasInvoker+longPathAware, and thatdsweep --helpruns. It then silent-installs and uninstallsDiskSweeper-Setup.exeand checks the Start menu shortcut.The downloads are unsigned. The README tells users how to get past the SmartScreen unknown-publisher warning.
License
There was no license file. This adds MIT, copyright 2026 process631 (the account on the existing commits).
Cutting v1.0.0 after merge
The tag has to be on a commit that contains this workflow. Pushing the tag is the release; don't create the GitHub Release by hand.