mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 18:54:21 +01:00
fix: make build script work cross-platform (#3430)
Co-authored-by: JosXa <info@josxa.dev>
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
#!/usr/bin/env bun
|
#!/usr/bin/env bun
|
||||||
import path from "path"
|
import path from "path"
|
||||||
const dir = new URL("..", import.meta.url).pathname
|
import { fileURLToPath } from "url"
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url)
|
||||||
|
const __dirname = path.dirname(__filename)
|
||||||
|
const dir = path.resolve(__dirname, "..")
|
||||||
|
|
||||||
process.chdir(dir)
|
process.chdir(dir)
|
||||||
import { $ } from "bun"
|
import { $ } from "bun"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user