Skip to content

Publish a self-contained Windows download - #2

Merged
process631 merged 4 commits into
mainfrom
cursor/windows-release-aa1a
Nov 19, 2026
Merged

process631 merged 4 commits into
mainfrom
cursor/windows-release-aa1a

Conversation

@process631

Copy link
Copy Markdown
Owner

Summary

DiskSweeper can now be downloaded and run on Windows 10/11 without installing .NET or compiling.

  • CI on windows-latest builds and tests on pushes to main and on pull requests.
  • A v* tag (for example v1.0.0) publishes a GitHub Release with generated notes. This pull request does not create a release.
  • Pull requests and Run workflow upload the same files as artifacts, so the publish path is checked before anyone tags a release.
  • The app stays asInvoker. Fast NTFS scans and the admin-only delete fixes still elevate through the existing runas helper, so opening the app does not show a UAC prompt.

Downloads the release will attach

File What it is
DiskSweeper-Setup.exe Inno Setup installer: Start menu shortcut, optional desktop icon, uninstaller in Settings > Apps. 64-bit (also runs on Windows 11 ARM under emulation).
DiskSweeper-win-x64.exe Self-contained single-file app.
DiskSweeper-win-x64.zip That app, dsweep.exe, the MIT license, and a short readme.
DiskSweeper-win-arm64.exe / .zip Native ARM64 build of the same.
SHA256SUMS.txt Hashes for the files above.

dotnet publish uses --self-contained true, PublishSingleFile, IncludeNativeLibrariesForSelfExtract, and EnableCompressionInSingleFile. CI checks that each exe is a real PE, is large enough to contain the runtime, embeds asInvoker + longPathAware, and that dsweep --help runs. It then silent-installs and uninstalls DiskSweeper-Setup.exe and 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

git checkout main
git pull
git tag -a v1.0.0 -m "DiskSweeper 1.0.0"
git push origin v1.0.0

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.

Open in Web Open in Cursor 

cursoragent and others added 4 commits November 19, 2026 18:25
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>
@process631
process631 merged commit ab34798 into main Nov 19, 2026
2 checks passed
@process631
process631 deleted the cursor/windows-release-aa1a branch November 25, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants