mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-12 22:43:24 +00:00
fix: add --use-system-ca flag in execArgv
This commit is contained in:
parent
dee0226741
commit
a2f80f7c0d
2 changed files with 7 additions and 2 deletions
|
|
@ -60,7 +60,12 @@ const result = await Bun.build({
|
|||
compile: {
|
||||
target,
|
||||
outfile: "opencode",
|
||||
execArgv: ["--user-agent=opencode/" + version, '--env-file=""', "--"],
|
||||
autoloadBunfig: false,
|
||||
autoloadDotenv: false,
|
||||
//@ts-ignore (bun types aren't up to date)
|
||||
autoloadTsconfig: true,
|
||||
autoloadPackageJson: true,
|
||||
execArgv: ["--user-agent=opencode/" + version, "--use-system-ca", "--"],
|
||||
windows: {},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ for (const item of targets) {
|
|||
autoloadPackageJson: true,
|
||||
target: name.replace(pkg.name, "bun") as any,
|
||||
outfile: `dist/${name}/bin/opencode`,
|
||||
execArgv: [`--user-agent=opencode/${Script.version}`, "--"],
|
||||
execArgv: [`--user-agent=opencode/${Script.version}`, "--use-system-ca", "--"],
|
||||
windows: {},
|
||||
},
|
||||
entrypoints: ["./src/index.ts", parserWorker, workerPath],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue