diff options
| author | Frank <[email protected]> | 2026-03-04 11:13:14 -0500 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-03-04 11:13:14 -0500 |
| commit | e9de2505f65b65a581a90dbd3b29f21dac6568de (patch) | |
| tree | b4f982f67f5e1fd78debf192ad237806db2cd62d /packages/desktop-electron/scripts/predev.ts | |
| parent | 22fcde926fd8a071a213a54d624584372e73822d (diff) | |
| parent | 715b844c2a88810b6178d7a2467c7d36ea8fb764 (diff) | |
| download | opencode-e9de2505f65b65a581a90dbd3b29f21dac6568de.tar.gz opencode-e9de2505f65b65a581a90dbd3b29f21dac6568de.zip | |
Merge branch 'dev' into go-page
Diffstat (limited to 'packages/desktop-electron/scripts/predev.ts')
| -rw-r--r-- | packages/desktop-electron/scripts/predev.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/desktop-electron/scripts/predev.ts b/packages/desktop-electron/scripts/predev.ts new file mode 100644 index 000000000..a688d0e7f --- /dev/null +++ b/packages/desktop-electron/scripts/predev.ts @@ -0,0 +1,17 @@ +import { $ } from "bun" + +import { copyBinaryToSidecarFolder, getCurrentSidecar, windowsify } from "./utils" + +await $`bun ./scripts/copy-icons.ts ${process.env.OPENCODE_CHANNEL ?? "dev"}` + +const RUST_TARGET = Bun.env.RUST_TARGET + +const sidecarConfig = getCurrentSidecar(RUST_TARGET) + +const binaryPath = windowsify(`../opencode/dist/${sidecarConfig.ocBinary}/bin/opencode`) + +await (sidecarConfig.ocBinary.includes("-baseline") + ? $`cd ../opencode && bun run build --single --baseline` + : $`cd ../opencode && bun run build --single`) + +await copyBinaryToSidecarFolder(binaryPath, RUST_TARGET) |
