Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

build: bump version to 2.17.3

leepokai9ff686a8ba17
diff --git a/.github/workflows/host.yml b/.github/workflows/host.yml
index 8c896a66..4119f818 100644
--- a/.github/workflows/host.yml
+++ b/.github/workflows/host.yml
@@ -102,10 +102,15 @@ jobs:
files: |
codync-host-*.tar.gz
codync-host-*.tar.gz.sha256
- codync-host-*.update.json
- codync-host-*.update.json.sig
codync-host-*.compat.json
codync-host-*.compat.json.sig
+ # The update manifest last: hosts offer the release once they see it, so the archive
+ # it points at must already be downloadable.
+ - uses: softprops/action-gh-release@v2
+ with:
+ files: |
+ codync-host-*.update.json
+ codync-host-*.update.json.sig
homebrew:
# Keeps `brew install leepokai/codync/codync-host` (Linux, headless Macs) in step with releases.
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
index 7d1330c8..78b4d29f 100644
--- a/.github/workflows/release-desktop.yml
+++ b/.github/workflows/release-desktop.yml
@@ -153,10 +153,13 @@ jobs:
run: |
cd apps/desktop/dist
shasum -a 256 codync-macos.dmg > codync-macos.dmg.sha256
- FILES="codync-macos.dmg codync-macos.dmg.sha256 codync-macos.zip codync-macos.zip.blockmap latest-mac.yml ../../../build/appcast.xml"
+ FILES="codync-macos.dmg codync-macos.dmg.sha256 codync-macos.zip codync-macos.zip.blockmap"
# The host workflow may have created this release already (same tag).
gh release create "$GITHUB_REF_NAME" $FILES --title "Codync $GITHUB_REF_NAME" --generate-notes ||
gh release upload "$GITHUB_REF_NAME" $FILES --clobber
+ # Update feeds last: installed apps offer the release once they see them, so the files
+ # they point at must already be downloadable.
+ gh release upload "$GITHUB_REF_NAME" latest-mac.yml ../../../build/appcast.xml --clobber
- name: Update Homebrew tap
if: startsWith(github.ref, 'refs/tags/')
@@ -229,7 +232,11 @@ jobs:
apps/desktop/dist/codync-windows-x64.exe
apps/desktop/dist/codync-windows-x64.exe.sha256
apps/desktop/dist/codync-windows-x64.exe.blockmap
- apps/desktop/dist/latest.yml
+ # The update feed last, once the installer it points at is downloadable.
+ - uses: softprops/action-gh-release@v2
+ if: startsWith(github.ref, 'refs/tags/')
+ with:
+ files: apps/desktop/dist/latest.yml
linux:
needs: check
@@ -270,6 +277,9 @@ jobs:
- uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
- files: |
- apps/desktop/dist/codync-${{ matrix.name }}.*
- apps/desktop/dist/latest-linux*.yml
+ files: apps/desktop/dist/codync-${{ matrix.name }}.*
+ # The update feed last, once the packages it points at are downloadable.
+ - uses: softprops/action-gh-release@v2
+ if: startsWith(github.ref, 'refs/tags/')
+ with:
+ files: apps/desktop/dist/latest-linux*.yml
diff --git a/apps/Codync.xcodeproj/project.pbxproj b/apps/Codync.xcodeproj/project.pbxproj
index 2f35418e..62de224d 100644
--- a/apps/Codync.xcodeproj/project.pbxproj
+++ b/apps/Codync.xcodeproj/project.pbxproj
@@ -772,7 +772,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
MACOSX_DEPLOYMENT_TARGET = 14.0;
- MARKETING_VERSION = 2.17.2;
+ MARKETING_VERSION = 2.17.3;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
@@ -870,7 +870,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
MACOSX_DEPLOYMENT_TARGET = 14.0;
- MARKETING_VERSION = 2.17.2;
+ MARKETING_VERSION = 2.17.3;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1129,7 +1129,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
MACOSX_DEPLOYMENT_TARGET = 14.0;
- MARKETING_VERSION = 2.17.2;
+ MARKETING_VERSION = 2.17.3;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
@@ -1279,7 +1279,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
MACOSX_DEPLOYMENT_TARGET = 14.0;
- MARKETING_VERSION = 2.17.2;
+ MARKETING_VERSION = 2.17.3;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
diff --git a/apps/desktop/package-lock.json b/apps/desktop/package-lock.json
index d4086b63..4792a8ad 100644
--- a/apps/desktop/package-lock.json
+++ b/apps/desktop/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "codync-desktop",
- "version": "2.17.2",
+ "version": "2.17.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "codync-desktop",
- "version": "2.17.2",
+ "version": "2.17.3",
"license": "Apache-2.0",
"dependencies": {
"electron-updater": "^6.8.9"
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index 34411ddd..1f73b4b9 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -1,7 +1,7 @@
{
"name": "codync-desktop",
"productName": "Codync",
- "version": "2.17.2",
+ "version": "2.17.3",
"description": "Codync for macOS, Linux and Windows: your coding agents as teammates.",
"author": {
"name": "leepokai",
diff --git a/apps/desktop/src/main/updates.ts b/apps/desktop/src/main/updates.ts
index 5140d300..796f5848 100644
--- a/apps/desktop/src/main/updates.ts
+++ b/apps/desktop/src/main/updates.ts
@@ -71,10 +71,7 @@ export class Updates extends EventEmitter {
autoUpdater.autoDownload = false
autoUpdater.autoInstallOnAppQuit = true
autoUpdater.on('checking-for-update', () => this.set({ checking: true, error: null }))
- autoUpdater.on('update-not-available', () => {
- this.installWhenDownloaded = false
- this.checked({ availableVersion: null })
- })
+ autoUpdater.on('update-not-available', () => this.upToDate())
autoUpdater.on('update-available', (info) => void this.available(info))
autoUpdater.on('download-progress', ({ percent }) => {
const rounded = Math.floor(percent)
@@ -87,7 +84,10 @@ export class Updates extends EventEmitter {
this.installWhenDownloaded = false
void this.install(true)
})
- autoUpdater.on('error', (error) => this.failed(error))
+ // The latest release has no update feed for this platform until its build finishes
+ // uploading: nothing to offer yet.
+ autoUpdater.on('error', (error: Error & { code?: string }) =>
+ error.code === 'ERR_UPDATER_CHANNEL_FILE_NOT_FOUND' ? this.upToDate() : this.failed(error))
// A staged update installs on Quit, once the host has actually stopped.
app.on('before-quit', (event) => {
@@ -124,6 +124,12 @@ export class Updates extends EventEmitter {
this.set({ checking: false, lastCheck: now, ...change })
}
+ private upToDate() {
+ this.installWhenDownloaded = false
+ this.userInitiated = false
+ this.checked({ availableVersion: null })
+ }
+
private failed(error: unknown) {
this.updateGeneration++
this.installWhenDownloaded = false
diff --git a/apps/desktop/src/shared/updates.test.ts b/apps/desktop/src/shared/updates.test.ts
index 45b29b9c..5bb29df9 100644
--- a/apps/desktop/src/shared/updates.test.ts
+++ b/apps/desktop/src/shared/updates.test.ts
@@ -108,6 +108,16 @@ test('latest version records the last check without downloading or stopping the
assert.equal(f.calls.download + f.calls.prepare + f.calls.install, 0)
})
+test('a latest release whose build is still uploading counts as up to date, not an error', async () => {
+ const f = updaterFixture()
+ f.updates.check()
+ await f.emit('error', Object.assign(new Error('Cannot find latest-mac.yml in the latest release artifacts'), { code: 'ERR_UPDATER_CHANNEL_FILE_NOT_FOUND' }))
+ assert.equal(f.updates.state.error, null)
+ assert.equal(f.updates.state.checking, false)
+ assert.equal(f.updates.state.availableVersion, null)
+ assert.equal(f.calls.download, 0)
+})
+
test('host stop failure preserves the staged release, reports an error and permits retry', async () => {
const f = updaterFixture()
f.behavior.prepare = async () => { throw new Error('stop failed') }
diff --git a/apps/project.yml b/apps/project.yml
index 50c3a50f..6490e218 100644
--- a/apps/project.yml
+++ b/apps/project.yml
@@ -25,7 +25,7 @@ configs:
DevRelease: release
settings:
base:
- MARKETING_VERSION: 2.17.2
+ MARKETING_VERSION: 2.17.3
CURRENT_PROJECT_VERSION: 24
SWIFT_VERSION: "6.0"
SWIFT_STRICT_CONCURRENCY: complete
diff --git a/docs/guides/updates.md b/docs/guides/updates.md
index 3cc4fc85..0ee6cbbc 100644
--- a/docs/guides/updates.md
+++ b/docs/guides/updates.md
@@ -120,8 +120,9 @@ release upgrade on each OS. They cover the state the UI renders (checking, downl
percentage, staged, restarting, errors) and the labels of the shared update action,
not the rendering itself.
-The release workflow publishes `latest-mac.yml` and `latest-linux*.yml` with the
-app archives. macOS build versions follow the marketing version; the iOS build
+The release workflow publishes `latest-mac.yml`, `latest.yml` and `latest-linux*.yml`
+after the app archives they point at, so an install never offers a release it can't
+download yet. macOS build versions follow the marketing version; the iOS build
counter is independent. Installs of the SwiftUI Mac app that preceded the desktop
app still read the Sparkle appcast; the release workflow generates one for the
desktop zip, so those installs move to the desktop app.
@@ -207,8 +208,10 @@ workflow emits `codync-host-<platform>.update.json` and `.update.json.sig` along
each archive. Signing fails if a private key does not match the committed public
key. Never commit private keys or put them in command-line arguments.
-A published release must include these assets before clients can update. A
-missing feed or manifest is reported as a check failure; no unsigned fallback is
+A published release must include these assets before clients can update. Feeds and
+manifests are uploaded after the archives they point at. The desktop app treats a
+release without its platform's feed as nothing to install yet (its build is still
+uploading); a host reports a missing manifest as a check failure. No unsigned fallback is
used. Building locally or configuring secrets does not publish a release.
## References
diff --git a/host/Cargo.lock b/host/Cargo.lock
index ba09714a..a1911b2b 100644
--- a/host/Cargo.lock
+++ b/host/Cargo.lock
@@ -586,7 +586,7 @@ checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
[[package]]
name = "codync-host"
-version = "2.17.2"
+version = "2.17.3"
dependencies = [
"anyhow",
"axum",
diff --git a/host/Cargo.toml b/host/Cargo.toml
index 04e2fb3f..b92b28c8 100644
--- a/host/Cargo.toml
+++ b/host/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "codync-host"
-version = "2.17.2"
+version = "2.17.3"
edition = "2024"
# let-chains (`if let … && let …`) need 1.88.
rust-version = "1.88"