OpenCode Desktop app (#5044)
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
This commit is contained in:
parent
ba417d80b1
commit
cd6bfb3f69
79 changed files with 1410 additions and 260 deletions
12
packages/tauri/scripts/copy-bundles.ts
Normal file
12
packages/tauri/scripts/copy-bundles.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { $ } from "bun"
|
||||
import * as path from "node:path"
|
||||
|
||||
import { RUST_TARGET } from "./utils"
|
||||
|
||||
if (!RUST_TARGET) throw new Error("RUST_TARGET not defined")
|
||||
|
||||
const BUNDLE_DIR = `src-tauri/target/${RUST_TARGET}/release/bundle`
|
||||
const BUNDLES_OUT_DIR = path.join(process.cwd(), `src-tauri/target/bundles`)
|
||||
|
||||
await $`mkdir -p ${BUNDLES_OUT_DIR}`
|
||||
await $`cp -r ${BUNDLE_DIR}/*/OpenCode* ${BUNDLES_OUT_DIR}`
|
||||
Loading…
Add table
Add a link
Reference in a new issue