0
Fork 0
mirror of https://github.com/zeronsh/comet.git synced 2026-11-16 18:57:19 +00:00
comet/dist
Wing 7f01dad0f6 The beta channel carries every zgx release; beta downloads stay on it
A stable release of the zgx app is also published to the beta feed when it's
newer than the beta there, so the website's beta downloads get each stable
release with no action. The zgx app follows the channel on record on Windows
and Linux too (as on macOS), so those installs stay on beta afterwards
rather than dropping to stable.

Windows: every zgx release keeps its files in beta\<version>, the name the
betas in the field check a package for; with a per-channel folder they
couldn't have installed a stable release from the beta feed. A package also
brings its feed: an install the old app's updater moved here switches from
the GitHub release to the edge's feed (stable at its root, beta beside it),
which release.yml now writes into the package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
History 2026-11-11 11:00:08 -07:00
..
icon The new app icon on macOS, Windows and Linux 2026-11-05 14:07:47 -07:00
macos The new app icon on macOS, Windows and Linux 2026-11-05 14:07:47 -07:00
voice Internal session plumbing and packaging cleanup (#819) 2026-10-06 23:47:32 -07:00
windows The beta channel carries every zgx release; beta downloads stay on it 2026-11-11 11:00:08 -07:00
README.md The new app icon on macOS, Windows and Linux 2026-11-05 14:07:47 -07:00
zeron.desktop Linux: install a launcher entry and icon with both installers (#627) 2026-09-29 11:12:04 -07:00
zeron.png The new app icon on macOS, Windows and Linux 2026-11-05 14:07:47 -07:00
zeron.svg The new app icon on macOS, Windows and Linux 2026-11-05 14:07:47 -07:00

Packaging

Linux (implemented)

scripts/package-linux.sh            # release build (thin LTO, stripped)
PROFILE=debug scripts/package-linux.sh   # fast smoke package

Produces target/package/zeron-<version>-linux-<arch>.tar.gz containing:

  • zeron — the binary (headed by default; zeron headless runs the engine alone)
  • zeron.desktop — XDG desktop entry template (Exec=zeron for packagers; the installers rewrite Exec, TryExec, and Icon to absolute paths under ~/.zeron/app/current, since ~/.local/bin is often not on a desktop session's PATH)
  • zeron.png — 1024×1024 Zeron app icon (scripts/make-app-icons.py)
  • install.sh — installs into ~/.zeron/app/<version> behind a current symlink (the curl installer's layout, which the in-app updater manages), links ~/.local/bin/zeron to it, and writes the desktop entry and icon under $XDG_DATA_HOME (default ~/.local/share). The curl installer does the same from the extracted tarball; scripts/test-linux-desktop-entry.sh checks both

The release profile in the root Cargo.toml sets lto = "thin" and strip = "symbols" for distribution builds.

macOS

scripts/package-macos.sh    # → target/package/zeron-<version>-macos-<arch>.dmg

Builds the release binary, assembles Zeron.app (Info.plist + icns), ad-hoc signs it (set CODESIGN_IDENTITY for a real Developer ID), and wraps it in a dmg. The auto-update tarball retains an internal Zeron.app path so older installed builds can update into Zeron. CI runs this on tags (.github/workflows/release.yml). The manual steps it automates, for reference (run on a macOS host — gpui needs Metal; no cross-build from Linux):

  1. Build the universal (or per-arch) binary:
    cargo build --release -p zeron --target aarch64-apple-darwin
    cargo build --release -p zeron --target x86_64-apple-darwin
    lipo -create -output zeron \
      target/aarch64-apple-darwin/release/zeron \
      target/x86_64-apple-darwin/release/zeron
    
  2. Assemble the bundle:
    mkdir -p Zeron.app/Contents/{MacOS,Resources}
    cp zeron Zeron.app/Contents/MacOS/zeron
    sed "s/__VERSION__/$(grep -m1 '^version' Cargo.toml | sed 's/.*"\(.*\)".*/\1/')/" \
      dist/macos/Info.plist > Zeron.app/Contents/Info.plist
    
  3. Icon: scripts/macos-app-icon.sh Zeron.app/Contents/Resources writes Assets.car from dist/macos/Zeron.icon (light, dark, clear and tinted, on macOS 26 and later; compiling it takes Xcode 26 or later) and zeron.icns from dist/macos/icon-1024.png (earlier macOS and the dmg). All the app's icons are made from the art in dist/icon by scripts/make-app-icons.py.
  4. Sign + notarize (required for distribution):
    codesign --deep --force --options runtime --sign "Developer ID Application: …" Zeron.app
    xcrun notarytool submit Zeron.zip --keychain-profile … --wait
    xcrun stapler staple Zeron.app
    
  5. Ship as a .dmg (hdiutil create -volname Zeron -srcfolder Zeron.app -ov -format UDZO Zeron.dmg).

Windows

./scripts/package-windows.ps1 -ReleasesUrl https://github.com/zeronsh/zeron/releases/latest/download

Produces, under target/package/:

  • zeron-<version>-windows-<arch>-setup.exe — the per-user installer built from dist/windows/zeron.iss with Inno Setup 6
  • zeron-<version>-windows-<arch>.zip — the portable package
  • zeron-<version>-windows-<arch>.exe — the bare executable the in-app updater downloads

The installer and the zip both carry zeron-update.json, the marker that lets the app update itself in place. CI runs scripts/test-windows-installer.ps1 against the setup on every Windows build.