diff options
Diffstat (limited to 'packages/desktop/scripts/predev.ts')
| -rw-r--r-- | packages/desktop/scripts/predev.ts | 13 |
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) |
