1.7 KiB
1.7 KiB
Release Process
- Update
version.json. - Run
dotnet restore YMhut.Box.Native.sln --configfile NuGet.Config --ignore-failed-sources. - Run
dotnet test src\YMhut.Box.Tests\YMhut.Box.Tests.csproj -c Release --no-restore. - Run
build.bat --target=both. - Verify
installer_output/*.msix,installer_output/*.appinstaller, and the Inno Setup EXE. - Install, launch, upgrade and uninstall both MSIX and EXE packages.
The default signing path uses a self-signed certificate for sideload validation. Replace the certificate before public distribution if a commercial signing certificate is available.
Gitea EXE Package Workflow
The Gitea Actions workflow at .gitea/workflows/publish-winui-exe.yml builds the Inno Setup installer with:
.\scripts\build-winui.ps1 --target=exe --no-pause
It then uploads the installer and a SHA-256 checksum file to Gitea Generic Packages:
{gitea.server_url}/api/packages/{gitea.repository_owner}/generic/ymhut-box-winui/{version}/{file}
The package version is derived from version.json using the same rule as the local build script. For example, version=2.0.7 and build=06 publishes version 2.0.7.6.
Required runner setup:
- A Windows Gitea runner labeled
windows-latest. - Internet access to download .NET workloads/NuGet packages and the pinned Inno Setup compiler when
ISCC.exeis not already installed. - A repository secret named
PACKAGE_TOKENwith package write/delete access. Use a personal access token because Gitea's built-in Actions job token does not fully support package repository publishing on all versions.
Optional repository variables:
PACKAGE_USERNAME: username that owns the package token. If omitted, the workflow actor is used.