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
build(desktop): bundle the screen helper in local mac builds
leepokai6e6c67bed3b3
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.ymlindex 51fb7b70..fd0d3cf3 100644--- a/.github/workflows/release-desktop.yml+++ b/.github/workflows/release-desktop.yml@@ -73,13 +73,9 @@ jobs:swift build -c release --arch arm64 --arch x86_64 --package-path apps/desktop/native/speech-macoscp "$(swift build -c release --arch arm64 --arch x86_64 --package-path apps/desktop/native/speech-macos --show-bin-path)/codync-speech" \apps/desktop/build/native/codync-speech- # Codync Screen (Remote screen capture and input), built unsigned; electron-builder signs it.+ # Codync Screen is built by `npm run dist:mac:main` (tools/native-screen.mjs).xcodebuild -downloadComponent MetalToolchain || truexcodegen generate --spec apps/project.yml- xcodebuild build -project apps/Codync.xcodeproj -scheme Screen -configuration Release \- -destination 'generic/platform=macOS' -derivedDataPath build/derived -quiet \- CODE_SIGN_IDENTITY="-" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO- cp -R "$(find build/derived -name CodyncScreen.app -path '*/Release/*' | head -1)" apps/desktop/build/native/swift packaging/dmg/background.swift apps/desktop/build/dmg-background.tiff- name: Build, sign and notarizediff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex 00bf333e..c30de884 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -13,8 +13,8 @@"typecheck": "tsc --noEmit -p tsconfig.json","test": "node --test --experimental-strip-types src/shared/*.test.ts src/renderer/views/thread/*.test.ts","icons": "swift tools/export-symbols.swift",- "dist:mac:dev": "node tools/account-config.mjs dev && node tools/native-host.mjs dev && electron-vite build && electron-builder --mac",- "dist:mac:main": "node tools/account-config.mjs main && node tools/native-host.mjs main && electron-vite build && electron-builder --mac",+ "dist:mac:dev": "node tools/account-config.mjs dev && node tools/native-host.mjs dev && node tools/native-screen.mjs && electron-vite build && electron-builder --mac",+ "dist:mac:main": "node tools/account-config.mjs main && node tools/native-host.mjs main && node tools/native-screen.mjs && electron-vite build && electron-builder --mac","dist:linux:dev": "node tools/account-config.mjs dev && electron-vite build && electron-builder --linux","dist:linux:main": "node tools/account-config.mjs main && electron-vite build && electron-builder --linux"},diff --git a/apps/desktop/tools/native-screen.mjs b/apps/desktop/tools/native-screen.mjsnew file mode 100644index 00000000..2365435d--- /dev/null+++ b/apps/desktop/tools/native-screen.mjs@@ -0,0 +1,22 @@+// Builds Codync Screen (Remote screen capture and input) into build/native/CodyncScreen.app for the+// Mac app to bundle, unsigned (electron-builder signs it). Without it the app registers a launch+// agent pointing at a missing helper and Remote screen never starts.+import { execFileSync } from 'node:child_process'+import { cpSync, mkdirSync, rmSync } from 'node:fs'+import { dirname, join } from 'node:path'+import { fileURLToPath } from 'node:url'++if (process.platform !== 'darwin') process.exit(0)+const root = join(dirname(fileURLToPath(import.meta.url)), '..')+const repo = join(root, '../..')+const derived = join(repo, 'build/dd')+execFileSync('xcodebuild', [+ 'build', '-project', join(repo, 'apps/Codync.xcodeproj'), '-scheme', 'Screen', '-configuration', 'Release',+ '-destination', 'generic/platform=macOS', '-derivedDataPath', derived, '-quiet',+ 'CODE_SIGN_IDENTITY=-', 'CODE_SIGNING_REQUIRED=NO', 'CODE_SIGNING_ALLOWED=NO',+], { stdio: 'inherit' })+const out = join(root, 'build/native/CodyncScreen.app')+mkdirSync(dirname(out), { recursive: true })+rmSync(out, { recursive: true, force: true })+cpSync(join(derived, 'Build/Products/Release/CodyncScreen.app'), out, { recursive: true, verbatimSymlinks: true })+console.log('screen: built')diff --git a/docs/architecture/desktop-app.md b/docs/architecture/desktop-app.mdindex 9d6263f8..7b32519f 100644--- a/docs/architecture/desktop-app.md+++ b/docs/architecture/desktop-app.md@@ -70,10 +70,10 @@ npm run dist:linux:dev # / dist:linux:mainThey write `resources/account-config.json` for that environment, and the Mac ones build thebundled host (`tools/native-host.mjs`, universal, through rustup's pinned toolchain) for the same-one, so app and host always match. Extra electron-builder flags go after `--`-(`npm run dist:mac:dev -- --dir --arm64`). The other native pieces at-the top of `electron-builder.yml` (speech and screen helpers) don't depend on the environment;-place them first (the release workflow, `.github/workflows/release-desktop.yml`, shows how).+one, so app and host always match, plus the Codync Screen helper (`tools/native-screen.mjs`).+Extra electron-builder flags go after `--` (`npm run dist:mac:dev -- --dir --arm64`). The speech+helper 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).Only one environment's host runs on a computer at a time (one `~/.codync`, port and service):switching environments means installing the other build.