summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/scripts/predev.ts
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-22 20:01:16 -0600
committerAdam <[email protected]>2025-12-22 20:01:25 -0600
commit81c3c638953fb7730a6965b3614d57e3c4919dde (patch)
treebea87a6b98078d52dd037da16500b29a28587edc /packages/desktop/scripts/predev.ts
parentb76bd4141dd78db94ab485743b4dc21d918cd85e (diff)
downloadopencode-81c3c638953fb7730a6965b3614d57e3c4919dde.tar.gz
opencode-81c3c638953fb7730a6965b3614d57e3c4919dde.zip
chore: rename packages/tauri -> packages/desktop
Diffstat (limited to 'packages/desktop/scripts/predev.ts')
-rw-r--r--packages/desktop/scripts/predev.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/desktop/scripts/predev.ts b/packages/desktop/scripts/predev.ts
new file mode 100644
index 000000000..218215197
--- /dev/null
+++ b/packages/desktop/scripts/predev.ts
@@ -0,0 +1,13 @@
+import { $ } from "bun"
+
+import { copyBinaryToSidecarFolder, getCurrentSidecar } from "./utils"
+
+const RUST_TARGET = Bun.env.TAURI_ENV_TARGET_TRIPLE
+
+const sidecarConfig = getCurrentSidecar(RUST_TARGET)
+
+const binaryPath = `../opencode/dist/${sidecarConfig.ocBinary}/bin/opencode`
+
+await $`cd ../opencode && bun run build --single`
+
+await copyBinaryToSidecarFolder(binaryPath, RUST_TARGET)