mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
chore(core): use @opencode/pty 0.3.3 (#60276)
This commit is contained in:
committed by
GitHub
Unverified
parent
3eb834b85a
commit
d3ad3da99e
@@ -71,7 +71,7 @@ if (!targets.length) throw new Error(`Unknown build target: ${requestedTarget}`)
|
||||
|
||||
// Bun 1.4.4 skips native packages for the other libc by default, but the musl targets need them.
|
||||
if (!skipInstall)
|
||||
await $`bun install --os="*" --cpu="*" --libc="*" @opentui/core@${pkg.dependencies["@opentui/core"]} @opencode-ai/pty@${pkg.dependencies["@opencode-ai/pty"]}`
|
||||
await $`bun install --os="*" --cpu="*" --libc="*" @opentui/core@${pkg.dependencies["@opentui/core"]} @opencode/pty@${pkg.dependencies["@opencode/pty"]}`
|
||||
const appArchive = path.join(dir, ".cache", "bun-app-archive.bin")
|
||||
await Bun.write(appArchive, await buildAppArchive(Script.channel, { skipBuild: skipWebUi }))
|
||||
const appAssetsPlugin: BunPlugin = {
|
||||
|
||||
@@ -16,7 +16,7 @@ type Target = {
|
||||
}
|
||||
|
||||
const core = createRequire(path.resolve(import.meta.dirname, "../../core/package.json"))
|
||||
const pty = createRequire(core.resolve("@opencode-ai/pty/package.json"))
|
||||
const pty = createRequire(core.resolve("@opencode/pty/package.json"))
|
||||
|
||||
export async function resolveOpencodePty(target: Target): Promise<OpencodePtyAsset | undefined> {
|
||||
if (target.platform !== "darwin" && target.platform !== "linux" && target.platform !== "win32") return undefined
|
||||
@@ -26,7 +26,7 @@ export async function resolveOpencodePty(target: Target): Promise<OpencodePtyAss
|
||||
.filter(Boolean)
|
||||
.map((value) => (value === "glibc" ? "gnu" : value))
|
||||
.join("-")
|
||||
const name = `@opencode-ai/pty-${suffix}`
|
||||
const name = `@opencode/pty-${suffix}`
|
||||
const local = process.env.OPENCODE_PTY_BIN
|
||||
if (local && (target.platform !== process.platform || target.arch !== process.arch))
|
||||
throw new Error("OPENCODE_PTY_BIN can only be embedded in a build for the current platform and architecture")
|
||||
|
||||
Reference in New Issue
Block a user