Installing over a running Winc stopped on winc.exe with an "Error opening file for writing" prompt. A silent installation, which is how updates run, skipped the open file instead and replaced the others, so an update while another Winc process ran (--wait, -, --new-instance) left a mix of versions. The terminal helper outlives winc.exe briefly while it closes the shells, and winc-pty.exe was written once without a retry, so an update could also keep the old helper beside the new winc.exe. Uninstalling a running Winc left both files behind. The installer and the uninstaller now check that winc.exe and winc-pty.exe can be opened for writing before changing anything. An interactive run asks to close Winc and can retry. A silent installation waits up to 5 s and then fails; a silent uninstallation leaves Winc installed. Neither executable is skipped any more when it cannot be written. The release check covers both outcomes of an installation with a running terminal helper. Co-Authored-By: Claude Opus 5.5 xhigh Co-Authored-By: GPT 6.2 Sol max
Releasing winc
Every merge into main is a release. It creates the annotated tag v<version>, explicitly
dispatches the Release workflow on that tag, builds six native targets, and assembles one
draft GitHub Release. A maintainer reviews and publishes the draft. No platform job uploads
directly to a Release.
Raise the version on dev before opening the pull request into main: its "Release version" check
fails while the version is already tagged, and a push to main with such a version fails instead
of releasing it again. To retry a failed build, rerun the Release workflow on the existing tag.
Layout
| Path | Contents |
|---|---|
.github/workflows/release-tag.yml |
Tags each merge into main and starts the Release workflow |
.github/workflows/release.yml |
Entry point: prepare, the six platform builds, and the draft |
.github/workflows/release-arch-repo.yml |
Stages the signed Arch repository after a stable release is published |
.github/workflows/release-{prepare,macos,linux,windows}.yml |
Reusable jobs called by release.yml |
.github/actions/build-setup/ |
Shared source check and toolchain setup; pins the release Rust version |
release/macos/ |
package.sh (app, dmg, appcast), verify.sh, and Apple signing setup |
release/linux/ |
package.sh (AppImage and deb), the glibc baseline (baseline.*), pinned packaging tools, desktop entry and AppRun |
release/linux/arch/ |
Arch package recipe, repository staging and installer template |
release/windows/ |
package.ps1 (NSIS, MSI, portable zip), sign.ps1, verify.ps1, installer templates |
release/common/ |
Shared by all platforms: version, build config, update signing, asset staging, publication |
Version and source
The release version is the single line of the VERSION file at the repository root. To prepare a
version, edit that file, commit it, then merge into main. The program reads the same file at
compile time through the winc-version crate.
The crates themselves carry no version: Cargo hashes a package's version into its build
artifacts, so a version in Cargo.toml would rebuild every crate from scratch on each release and
leave the old artifacts in target. Cargo.lock therefore does not change with the release
version. The Release workflow rejects a Cargo.lock that does not match Cargo.toml, a tag that
does not equal v<version>, a checkout that differs from the workflow's immutable commit, or a
tag that moved after the build began.
The Release workflow can also be dispatched manually. With release_tag set, a branch-context request
dispatches a new run on that existing tag. With no tag selected, a branch run builds downloadable
Actions artifacts and does not create a Release. The builds sign the update feed, so a branch run
needs that branch added to the release environment's deployment branches first. An existing
version tag is not recreated; rerun the Release workflow on that tag to retry a failed build.
Signing configuration
Apart from the update key, names are identical to DEEIX Chat. Store private values as Secrets
of the release environment (Settings → Environments → release), not as repository Secrets,
Variables or committed files. The environment admits only v* tags and needs a maintainer's
approval, so a workflow changed on a branch cannot read the keys. Each release run waits for that
approval before the platform builds start, and the Arch repository run waits again.
| Secrets | Purpose |
|---|---|
WINC_UPDATE_PRIVATE_KEY |
Required: contents of a current Sparkle exported key file, base64 encoding a 32-byte Ed25519 seed |
SIGN_AND_NOTARIZE_SCRIPT_URL, SIGN_AND_NOTARIZE_BASE_URL, SIGN_AND_NOTARIZE_API_TOKEN, SIGN_AND_NOTARIZE_HELPER_URL |
Optional external Apple signing provider; configure all four together |
APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_ID, APPLE_PASSWORD |
Optional local Apple Developer ID provider; certificate is a base64-encoded P12 |
WINDOWS_CERTIFICATE, WINDOWS_CERTIFICATE_PASSWORD |
Optional Windows Authenticode provider; certificate is a base64-encoded PFX |
The four external signing Secrets already configured for Winc retain their original names and meaning. A complete external provider takes priority over local Apple credentials. Partial provider configuration fails; with no Apple provider, packages are ad-hoc signed. Without a Windows certificate, installers are unsigned. Updater signatures remain mandatory on every platform.
WINC_UPDATE_PRIVATE_KEY is a Sparkle seed that signs every update package and appcast. Store
it in the release environment; it is never shared with other projects. With the pinned Sparkle
tools, generate a dedicated Winc key and export it using
generate_keys --account com.deeix.winc, followed by
generate_keys --account com.deeix.winc -x <private-key-file>. Use the exported file's contents as
the Secret; do not commit it. Older 96-byte Sparkle exports are rejected.
Keep this key across releases: an installed application trusts the public key embedded in its build.
The build derives WINC_UPDATE_PUBLIC_KEY from that seed and WINC_UPDATE_CHANNELS from the
version (see below). Neither needs a repository Variable.
Artifacts and updates
| Platform | Release filenames, prefixed with Winc-<version>- |
|---|---|
| macOS Apple silicon | macos-arm64.dmg |
| macOS Intel | macos-x64.dmg |
| Linux x86_64 | linux-x64.AppImage, linux-x64.deb, linux-x64.rpm |
| Linux ARM64 | linux-arm64.AppImage, linux-arm64.deb, linux-arm64.rpm |
| Windows x86_64 | windows-x64-setup.exe, windows-x64.msi, windows-x64-portable.zip |
| Windows ARM64 | windows-arm64-setup.exe, windows-arm64.msi, windows-arm64-portable.zip |
All packages include the terminal helper. macOS containers use the same final app and retain the
macOS 11 minimum. Linux programs are compiled in a manylinux_2_28 image (release/linux/baseline.sh),
so they need glibc 2.28 or newer whatever the runner has; verify-baseline.sh fails the build when
a program needs a newer one, and the deb declares the same version. Each architecture is compiled
and packaged on a runner of its own kind. The rpm wraps the same binaries in a Fedora container:
rpmbuild derives the glibc requirement, and the window system libraries loaded at run time are
required by soname, so it installs on Fedora 40 or newer, RHEL 8 or newer and openSUSE Tumbleweed;
it is installed into AlmaLinux 8, which has glibc 2.28, as part of the build. Debian and RPM
prerelease versions use ~ so the final release sorts after its betas.
Stable X.Y.Z releases also include winc-<version>-1-x86_64.pkg.tar.zst and
winc-<version>-1-aarch64.pkg.tar.zst, each built from the Linux binaries of its architecture.
Arch Linux ARM has no official container image, so the aarch64 package is built and verified in
one imported from its root filesystem, whose signature is checked against the fingerprint of its
build system key. The Arch packages use pacman for updates.
Each release also has six signed appcasts for the in-app updater: appcast-macos-arm64.xml,
appcast-macos-x86_64.xml, appcast-linux.xml (x86_64), appcast-linux-arm64.xml,
appcast-windows.xml (x86_64), and appcast-windows-arm64.xml. They list the dmg, the
AppImage, and the NSIS and MSI installers, each with its EdDSA signature; the deb, the rpm and the
portable zip are downloads only. Installs that cannot update themselves (deb, rpm, the Arch
package, the portable zip) still read their platform's appcast and only notify: the update button
opens the downloads page, or suggests pacman -Syu for the Arch package. SHA256SUMS covers the assets assembled before publication.
Windows package managers
Both read the published GitHub Release; neither is built here.
- winget (
DEEIX-AI.Winc): the manifest lives in microsoft/winget-pkgs; this repository does not submit new versions to it. The installers update themselves, so winget only sees the newer version. - Scoop (
winc, in the Extras bucket): the manifest lives in ScoopInstaller/Extras and its bot follows new releases. It depends on these names staying as they are: the tagv<version>, the assetWinc-<version>-windows-x64-portable.zip,SHA256SUMS, andwinc.exe,bin\winc.cmdand thedatafolder inside the zip. Scoop keepsdataacross versions. A Scoop install does not update itself: it finds Scoop's record besidewinc.exeand tells the user to runscoop update winc.
Update channel (winc.si)
The workflows only produce these files; winc.si deploys them and serves the update channel. The contract between the two:
| Version | Channel URL built into the app |
|---|---|
Release, such as 1.2.0 |
https://winc.si/releases |
Prerelease, such as 1.2.0-beta.1 |
https://winc.si/releases/beta |
The app reads <channel URL>/appcast-<platform>.xml, and each appcast's download URLs are
<channel URL>/<file name>. To ship a version, deploy its appcasts and the files they list to that
URL. Appcasts are signed, so winc.si must serve them unchanged. The channel URL is defined once,
in channelBase in release/common/config.mjs.
The in-app release notes are not part of a channel. The app reads
https://winc.si/releases/notes/<language>.md (en.md, zh-cn.md) when the user opens them;
winc.si generates these files from its changelog. Each release starts with a ## <version> · <date>
line, which the app uses to pick the releases to show (crates/winc-app/src/release_notes.rs).
Windows NSIS installations are per-user; MSI installations are per-machine and use the fixed
UpgradeCode 00FDC6A5-D527-59AE-B4A5-E051B25222F3. Do not change it between releases. Each installer
writes winc-installation beside the executable. The updater selects the matching NSIS/MSI
enclosure, verifies its signature, waits for the app to exit, installs silently, and restarts only
when requested. MSI updates request elevation when required. Portable Windows and deb installations
continue to use manual or package-manager updates.
Arch repository (winc.si)
The Release · Sign Arch repository workflow stages deeix-ai-winc after a stable GitHub
Release is published. Add the following secrets to the release environment.
| Name | Value |
|---|---|
WINC_ARCH_SIGNING_PRIVATE_KEY |
Passphrase-protected OpenPGP signing key exported with gpg --armor --export-secret-keys <fingerprint> |
WINC_ARCH_SIGNING_PASSPHRASE |
Passphrase for the Arch signing key |
WINC_ARCH_SIGNING_FINGERPRINT |
Full 40-digit uppercase fingerprint without spaces |
After signing succeeds, download winc-arch-repo-<tag>.zip from the release's Assets and deploy its
contents under https://winc.si/releases/arch/. Deploy releases in version order. Upload the
versioned package and its signature before publishing the indexes and matching signatures together.
Use the generated installer and publish the full fingerprint on the download page after verifying
the first deployment.
For local signing, set the same fingerprint and run bash release/linux/arch/prepare-repo.sh --tag v1.2.3 --out target/winc-arch-v1.2.3 on an Arch machine with the signing key and an authenticated gh.
On x86_64 Arch Linux, aarch64 Arch Linux ARM or an Arch-based distribution (CachyOS, EndeavourOS,
Omarchy and others that set ID_LIKE=arch or ship /etc/arch-release), download and run the
installer to configure the signed repository and install Winc. The installer places the repository
ahead of the others in /etc/pacman.conf, because pacman takes a package from the first repository
that has it and Arch's extra repository also ships winc; running it again moves an existing entry
there. It then runs a full system upgrade and prompts for confirmation.
curl --proto '=https' --tlsv1.2 -fL -o install-arch.sh \
https://winc.si/releases/arch/install-arch.sh
sudo bash ./install-arch.sh
Once the repository is configured, install with sudo pacman -Syu winc and update with
sudo pacman -Syu.
Verification and publication
Before uploading, macOS checks both container contents, architectures, minimum system versions, signatures and notarization where configured. Linux checks the newest glibc symbol the programs need, the AppImage for bundled Wayland libraries, inspects the deb, installs the rpm in clean containers, and installs the stable Arch packages in clean containers. Windows checks signatures and exercises NSIS/MSI installation and the update launcher using paths containing spaces.
The single publication job requires all six verified target artifacts. It refuses missing, duplicate or unexpected assets, multiple drafts for the tag, and replacing an already published Release. Retrying a draft replaces the same expected asset names. Publishing remains a manual action after reviewing the draft, release notes and checksums.