Skip to content

Commit c05f405

Browse files
committed
fix(desktop): connect dev runs to their native client
1 parent 677c226 commit c05f405

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/desktop/scripts/build.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ async function dev(): Promise<void> {
101101
ACE_CONFIG_HOME: config.settings,
102102
ACE_KEYCHAIN_SERVICE: config.keychain,
103103
ACE_PORT: String(config.port),
104+
ACE_DESKTOP_CLIENT: join(bin, "ace-desktop-client"),
104105
});
105106
host = Bun.spawn([
106107
process.execPath,

‎docs/desktop-tools.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Source builds need Swift 6.2 or later and a valid Apple Development or Developer
2525
identity to use native desktop tools. The embedded bridge authenticates its bundled client against
2626
the app's signing team and exact client identifier. Set the development signing identity described in
2727
[UI testing](desktop.md#ui-testing) when building.
28-
For a host running from source, set `ACE_DESKTOP_CLIENT` to the signed app's
28+
`bun desktop dev` connects its source host to the signed client in that checkout's app automatically.
29+
For a source host started separately, set `ACE_DESKTOP_CLIENT` to the signed app's
2930
`Contents/MacOS/ace-desktop-client` and use the same `ACE_HOME` as that app. Normal packaged hosts
3031
find the client alongside Ace Helper automatically.
3132

0 commit comments

Comments
 (0)