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.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
ci(desktop): build the host in the dev-app profile on Windows dry runs into dev (#324)
Hao-wei Wu1fe3dd97ee92
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.ymlindex ac0137f3..1ab37d37 100644--- a/.github/workflows/release-desktop.yml+++ b/.github/workflows/release-desktop.yml@@ -190,6 +190,12 @@ jobs:windows:needs: checkif: needs.check.outputs.package == 'true'+ # The bundled host's Cargo profile (tools/native-host.mjs). Dry runs on PRs into dev build `dev-app`:+ # release minus thin LTO and the single codegen unit, about 3 minutes less per build. Tags and+ # release PRs into main build the `release` profile that ships. The macOS job stays on `release`,+ # the only profile in the cache rust-cache.yml saves for it.+ env:+ CODYNC_HOST_PROFILE: ${{ github.event_name == 'pull_request' && github.base_ref != 'main' && 'dev-app' || 'release' }}strategy:fail-fast: falsematrix:@@ -216,6 +222,8 @@ jobs:- uses: Swatinem/rust-cache@v2with:workspaces: host+ # A fully matched cache is never saved again, so each profile keeps its own.+ key: ${{ env.CODYNC_HOST_PROFILE }}- name: Initialize Windows networking providershell: powershell# The first CIM query on a fresh ARM runner can exceed the SSH tool's 30-second timeout.diff --git a/apps/desktop/tools/native-host.mjs b/apps/desktop/tools/native-host.mjsindex 18777186..f2c53a43 100644--- a/apps/desktop/tools/native-host.mjs+++ b/apps/desktop/tools/native-host.mjs@@ -21,8 +21,10 @@ const out = join(root, 'build/native')const tool = (name) => execFileSync('rustup', ['which', name], { cwd: host, encoding: 'utf8' }).trim()const [cargo, rustc] = [tool('cargo'), tool('rustc')]const run = (cmd, args) => execFileSync(cmd, args, { stdio: 'inherit', env: { ...process.env, CODYNC_ENV: env, RUSTC: rustc } })-// Codync Dev builds in the host's `dev-app` profile: seconds to rebuild instead of minutes.-const profile = env === 'dev' ? 'dev-app' : 'release'+// Codync Dev builds in the host's `dev-app` profile: seconds to rebuild instead of minutes. Windows CI+// dry runs pick it too through CODYNC_HOST_PROFILE (release-desktop.yml), since nothing they build ships.+const profile = process.env.CODYNC_HOST_PROFILE ?? (env === 'dev' ? 'dev-app' : 'release')+if (!['dev-app', 'release'].includes(profile)) throw new Error(`unknown host profile ${profile}`)const build = (target) => run(cargo, ['build', '--profile', profile, '--manifest-path', join(host, 'Cargo.toml'), '--target', target])const built = (target, name) => join(host, 'target', target, profile, name)mkdirSync(out, { recursive: true })diff --git a/docs/architecture/desktop-app.md b/docs/architecture/desktop-app.mdindex edbc21b2..14efcfc6 100644--- a/docs/architecture/desktop-app.md+++ b/docs/architecture/desktop-app.md@@ -163,7 +163,10 @@ one, so app and host always match, plus the Codync Screen helper (`tools/native-`dist:mac:dev` builds only what this Mac runs: the app folder for its architecture(`dist/mac-arm64/Codync Dev.app` on Apple silicon), the host for that architecture in the faster`dev-app` profile, and signatures without Apple's timestamp server (only notarized builds need it;-asking it for every file adds about 5 minutes). Extra electron-builder flags go after `--`. The speech+asking it for every file adds about 5 minutes). `CODYNC_HOST_PROFILE` (`dev-app` or `release`)+overrides the host's profile: the release workflow's Windows dry runs on PRs into `dev` build+`dev-app`, since nothing they make ships (its macOS job keeps `release`, the profile its cache holds).+Extra electron-builder flags go after `--`. The speechhelper at the top of `electron-builder.yml` doesn't depend on the environment; place it first(the release workflow, `.github/workflows/release-desktop.yml`, shows how).`dist:mac:dev` signs with the team 7FUM8A8H72 development certificate (`CSC_NAME` in