fix(desktop): verify Windows updates
This commit is contained in:
parent
c7871e14d4
commit
c3ed64c40d
2 changed files with 8 additions and 1 deletions
|
|
@ -46,3 +46,10 @@ test("keeps a hidden prod launcher for old Linux pins", async () => {
|
|||
expect(desktop).toContain("StartupWMClass=ai.opencode.desktop")
|
||||
expect(desktop).toContain("NoDisplay=true")
|
||||
})
|
||||
|
||||
test("verifies Windows update signatures", async () => {
|
||||
const module = await import("./electron-builder.config.ts?signature=windows")
|
||||
const config = module.default as Configuration
|
||||
|
||||
expect(config.win?.verifyUpdateCodeSignature).toBe(true)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ const getBase = (appId: string): Configuration => ({
|
|||
sign: signWindows,
|
||||
},
|
||||
target: ["nsis"],
|
||||
verifyUpdateCodeSignature: false,
|
||||
verifyUpdateCodeSignature: true,
|
||||
},
|
||||
nsis: {
|
||||
oneClick: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue