mirror of
https://gitee.com/zhangsken/opencode.git
synced 2026-10-16 10:30:01 +08:00
fix(desktop): stop signing macOS DMGs (#50469)
Co-authored-by: Brendonovich <14191578+Brendonovich@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5b9dc35eec
commit
9d531435b4
@@ -17,6 +17,12 @@ const channels = [
|
||||
{ channel: "prod", appId: "ai.opencode.desktop" },
|
||||
] as const
|
||||
|
||||
test("signs the macOS app without signing the DMG", async () => {
|
||||
const config = (await import("./electron-builder.config.ts?mac-signing")).default as Configuration
|
||||
expect(config.mac?.sign).toBeFunction()
|
||||
expect(config.dmg?.sign).not.toBe(true)
|
||||
})
|
||||
|
||||
for (const channel of channels) {
|
||||
test(`disables security code AutoFill by default for ${channel.channel}`, async () => {
|
||||
const previous = process.env.OPENCODE_CHANNEL
|
||||
|
||||
@@ -123,9 +123,6 @@ const getBase = (appId: string): Configuration => ({
|
||||
notarize: true,
|
||||
target: ["dmg", "zip"],
|
||||
},
|
||||
dmg: {
|
||||
sign: true,
|
||||
},
|
||||
protocols: {
|
||||
name: "OpenCode",
|
||||
schemes: ["opencode"],
|
||||
|
||||
Reference in New Issue
Block a user