Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/desktop/src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ const main = Effect.gen(function* () {
app.commandLine.appendSwitch("proxy-bypass-list", "<-loopback>")
const features = app.commandLine.getSwitchValue("enable-features")
app.commandLine.appendSwitch("enable-features", features ? `${jsCallStackFeature},${features}` : jsCallStackFeature)
if (!app.isPackaged) app.commandLine.appendSwitch("remote-debugging-port", "9222")
if (!app.isPackaged) {
const debugPort = process.env.OPENCODE_REMOTE_DEBUGGING_PORT ?? "9223"
app.commandLine.appendSwitch("remote-debugging-port", debugPort)
}

if (!app.requestSingleInstanceLock()) {
app.quit()
Expand Down
3 changes: 2 additions & 1 deletion packages/opencode/script/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const singleFlag = process.argv.includes("--single")
const baselineFlag = process.argv.includes("--baseline")
const skipInstall = process.argv.includes("--skip-install")
const sourcemapsFlag = process.argv.includes("--sourcemaps")
const noMinifyFlag = process.argv.includes("--no-minify")
const plugin = createSolidTransformPlugin()
const skipEmbedWebUi = process.argv.includes("--skip-embed-web-ui")

Expand Down Expand Up @@ -166,7 +167,7 @@ for (const item of targets) {
plugins: [plugin],
external: ["node-gyp"],
format: "esm",
minify: true,
minify: !noMinifyFlag,
sourcemap: sourcemapsFlag ? "linked" : "none",
splitting: true,
compile: {
Expand Down
Loading