Repository navigation
Automate releases with a WiX installer and GitHub Actions - #15
Merged
Merged
Conversation
Replace the manual release process (build the setup in Visual Studio, create the GitHub release, edit and upload the update XML, edit the website, bump the version in code) with a single Release workflow. - Replace Mapee.Gui.Setup.vdproj with a WiX v5 installer that installs the whole publish folder. It keeps the same UpgradeCode and the same per-user, elevated install context, so 1.3.0 installs upgrade in place. - Add scripts/build-installer.ps1 (publish + MSI + zip) and scripts/write-release-manifests.ps1 (updater XML with SHA256, website installer info), shared by CI and local builds. - Add a Build workflow that uploads the installer and the portable app as artifacts on every push and pull request. - Add a Release workflow: enter a version, and it builds, creates the tag and GitHub release, and uploads the update files to the bucket. - Take the version from the release instead of the csproj. Local builds are 0.0.0 and skip the update check. - Fix README links and add RELEASING.md with the one-time setup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The csproj used to hardcode FileVersion as 1.3.0. Now that the version comes from the release, the SDK sets FileVersion to the four-part 1.4.0.0, which the title would have shown as "v1.4.0.0". Build the title from the numeric version parts instead, so it keeps showing "v1.4.0". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test MSI is numbered 0.0.N, so Windows refuses to install it over a released Mapee, and the Release workflow builds its own MSI anyway. Keep building it in CI (so a broken installer still fails the pull request), but upload only the portable app, which testers can run directly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generated with `dotnet sln Mapee.sln migrate`. It keeps the same projects, solution folders and platform mappings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two bugs combined when building twice without cleaning: - WiX's incremental build doesn't notice a version-only change, and it hard-links its obj\ output into the output folder. The second build reused the previous, already-patched MSI, labelled with the wrong version. - Set-MsiRequiresElevation.ps1 opened the summary information for writing even when nothing changed. Releasing it without Persist() empties it, and Windows Installer then refuses the package (error 1620). Always build the installer from scratch (delete obj\ and bin\, pass --no-incremental), only open the summary for writing when saving, and read the Word Count back afterwards. build-installer.ps1 now also checks the MSI that ships: Windows Installer must be able to open it, and its version, Word Count and file count must be right. CI and the Release workflow always start from a fresh checkout, so CI builds were not affected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mapee 1.0.0 used UpgradeCode D8483D2E-... and 1.1.0-1.2.0 used 9C606522-..., so the 1.3.0 installer didn't replace them. Users who updated from those versions still have an old "Mapee" entry in Apps, whose files share the install folder (uninstalling it would delete files the current version uses). Add both retired UpgradeCodes to the Upgrade table so the installer removes those installs too. All old versions installed per-user like this package, so Windows Installer finds them. Found while testing an upgrade on a machine with both 1.2.0 and 1.3.0 registered. 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.
Summary
Replaces the manual release process with one button: Actions → Release → Run workflow →
1.4.0.Until now a release meant building the setup in Visual Studio, renaming and zipping the MSI, creating the GitHub release by hand, editing and uploading the update XML to the bucket, editing and redeploying the website, and bumping the version in the csproj and the
.vdproj.What changed
Mapee.Gui.Setup.vdprojbuilt only in Visual Studio and listed 182 files by hand.Mapee.Installer/(WiX v5) builds withdotnet buildand installs the whole publish folder, so new resource files need no installer changes.scripts/build-installer.ps1(publish → MSI → zip) andscripts/write-release-manifests.ps1(updater XML and website info). CI and local builds use the same scripts.masterand every PR. It builds the app and the installer, so a broken build fails on the PR, and uploads the portable app as an artifact, versioned0.0.<run>. The MSI isn't uploaded: a0.0.NMSI won't install over a released Mapee, and the release builds its own.v1.4.0, not the four-part1.4.0.0that .NET now writes into the exe.AssemblyVersion,FileVersionandVersionare removed. The csproj stays at0.0.0, the release injects the real version, andUpdateCheckerskips the update check for0.xbuilds.Mapee.slnis nowMapee.slnx, generated bydotnet sln migratewith the same projects, folders and platform mappings.RELEASING.mdcovers how to release and the one-time setup.Worth a careful look
ALLUSERS) but elevated, into Program Files. Windows only upgrades a product installed in the same context, so the WiX package usesScope="perUser", and a post-build step (Set-MsiRequiresElevation.ps1) clears the summary bit that says no elevation is needed. The UpgradeCode is unchanged.D8483D2E-…) and 1.1.0–1.2.0 (9C606522-…) used different UpgradeCodes, so 1.3.0 never replaced them, and users who updated still have a stale "Mapee" entry sharing the install folder. The installer now removes those too. All old versions installed per-user, like this package.Testing
ALLUSERS). WiX's ICE validation passes.Icon.ico) must be right.SHA256.Setup status
Voxelview/Mapeeonmaster, and CORS for mapee.net.GCP_WORKLOAD_IDENTITY_PROVIDER,GCP_SERVICE_ACCOUNTandGCS_PREDEFINED_ACL=publicReadare set.Before the first release
🤖 Generated with Claude Code