fix(desktop): update main process (#25825)

This commit is contained in:
Brendan Allan 2026-05-05 13:44:53 +08:00 committed by GitHub
parent b4147c8d08
commit 03544a26cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,6 +51,7 @@ import {
} from "./windows"
import { drizzle } from "drizzle-orm/node-sqlite/driver"
import type { Server } from "virtual:opencode-server"
import { migrate } from "./migrate"
const initEmitter = new EventEmitter()
let initStep: InitStep = { phase: "server_waiting" }
@ -112,6 +113,7 @@ function setupApp() {
}
void app.whenReady().then(async () => {
migrate()
app.setAsDefaultProtocolClient("opencode")
registerRendererProtocol()
setDockIcon()