mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
13 lines
390 B
TypeScript
13 lines
390 B
TypeScript
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)
|