For maintainers. Users only need the Download section of the README.
vMAJOR.MINOR.PATCH for the tag, with a lowercase v and no fourth number (for example v0.1.0).v0.1.0-beta.1) is published as a pre-release.<Version> in Directory.Build.props to the same number without the
v. The About window shows it. The workflow uses the tag name as the version of the zip files.Pushing a tag that starts with v runs the release workflow:
win-x64:
FreePartition-<version>-win-x64.zip: small, needs the .NET Desktop Runtime.FreePartition-<version>-win-x64-self-contained.zip: larger, runs without installing .NET.SHA256SUMS.txt with the hash of both zips.SHA256SUMS.txt,
and generates the notes from the commits.The workflow does not build the WinPE image: it needs the Windows ADK, which is not on the GitHub runner.
<Version> in Directory.Build.props, commit and push.Create and push the tag:
git tag v0.1.0
git push origin v0.1.0
SHA256SUMS.txt.Build the WinPE image on your machine, in PowerShell as administrator (needs the Windows ADK and the WinPE add-on, see tools/winpe/README.md):
.\tools\winpe\build-winpe.ps1
The image is tools\winpe\out\FreePartition-WinPE.iso.
FreePartition-WinPE.iso. The link
https://github.com/rfiori/FreePartition/releases/latest/download/FreePartition-WinPE.iso then always points to the
latest image.Optional: put the hash of the ISO in the release notes. Do not upload a file called SHA256SUMS.txt, it would
replace the one made by the workflow.
(Get-FileHash tools\winpe\out\FreePartition-WinPE.iso -Algorithm SHA256).Hash.ToLower()
Edit the release notes (the workflow fills them with the list of commits). Suggested text:
## FreePartition 0.1.0
First stable release. All operations were tested on real disks.
**Highlights**
- Recover deleted files (NTFS scan, carving by signature, preview and thumbnails)
- Create, resize, move, merge, split, format and clone partitions
- Clone Windows to another disk from WinPE, with boot files and recovery partition
- Read-only S.M.A.R.T. and NVMe health reports
**Downloads**
- `FreePartition-0.1.0-win-x64-self-contained.zip`: runs without installing anything (recommended)
- `FreePartition-0.1.0-win-x64.zip`: smaller, needs the .NET Desktop Runtime 10
- `FreePartition-WinPE.iso`: bootable image to clone Windows (see the
[step-by-step guide](https://github.com/rfiori/FreePartition/blob/main/docs/clone-windows/GUIDE.md))
Verify the zips with `SHA256SUMS.txt`. The builds are not code-signed, so Windows SmartScreen may warn on first run.
<Version> updated and the tests pass (dotnet test)vMAJOR.MINOR.PATCH pushed and the workflow is greenSHA256SUMS.txt are on the releaseFreePartition-WinPE.iso