opencode: provide channel to web build (#28612)
This commit is contained in:
parent
f70afbea34
commit
7d5e91b801
3 changed files with 14 additions and 6 deletions
|
|
@ -58,7 +58,7 @@ const createEmbeddedWebUIBundle = async () => {
|
|||
console.log(`Building Web UI to embed in the binary`)
|
||||
const appDir = path.join(import.meta.dirname, "../../app")
|
||||
const dist = path.join(appDir, "dist")
|
||||
await $`bun run --cwd ${appDir} build`
|
||||
await $`OPENCODE_CHANNEL=${Script.channel} bun run --cwd ${appDir} build`
|
||||
const files = (await Array.fromAsync(new Bun.Glob("**/*").scan({ cwd: dist })))
|
||||
.map((file) => file.replaceAll("\\", "/"))
|
||||
.filter((file) => !file.endsWith(".map"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue