Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Windows releases sign every DLL and native module, not just the programs, and the build lists anything left unsigned (fails for Yogurt's own helpers) (#99: Code Integrity blocked an unsigned whisper.dll)

christianmat20674b9ef5e5
diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml
index 78d8fd0f..3a8ad720 100644
--- a/.github/workflows/preview.yml
+++ b/.github/workflows/preview.yml
@@ -147,6 +147,14 @@ jobs:
Write-Host "$f : $($s.Status) $($s.SignerCertificate.Subject)"
if ($s.Status -ne 'Valid') { throw "$f is not signed: $($s.Status)" }
}
+ # every program and library Yogurt ships is signed: Code Integrity blocks an unsigned one from loading (#99).
+ # Yogurt's own helpers must be; anything else unsigned is listed, so it can be added
+ $all = Get-ChildItem app/dist/win-unpacked -Recurse -File -Include *.exe,*.dll,*.node
+ $unsigned = $all | Where-Object { (Get-AuthenticodeSignature $_.FullName).Status -ne 'Valid' }
+ Write-Host "signed $($all.Count - $unsigned.Count) of $($all.Count) programs and libraries"
+ $unsigned | ForEach-Object { Write-Host "::warning::not signed: $($_.FullName)" }
+ $ours = $unsigned | Where-Object { $_.FullName -match '\\resources\\bin\\' }
+ if ($ours) { throw "Yogurt's own helpers are not all signed: $($ours.Name -join ', ')" }
# kept before the checks below, so testers get the installer even when one of them fails
- uses: actions/upload-artifact@v4
with:
diff --git a/app/electron-builder.yml b/app/electron-builder.yml
index 752c7982..f5a537eb 100644
--- a/app/electron-builder.yml
+++ b/app/electron-builder.yml
@@ -107,6 +107,9 @@ win:
# the tray's colour icons (tray.ts; @2x next to them), a Mac uses its template tray.png
- { from: resources, to: ., filter: ["tray-color*.png", "tray-recording*.png"] }
artifactName: Yogurt-windows-${arch}.${ext}
+ # a release signs the DLLs and native modules too, not just the programs: with Windows Code Integrity on, an unsigned
+ # whisper.dll or ggml.dll is blocked from loading and speech setup fails (#99)
+ signExts: [".dll", ".node"]
target:
- target: nsis
arch: [x64]
diff --git a/app/test/windowsSigning.test.ts b/app/test/windowsSigning.test.ts
index f7cc1601..150a66a5 100644
--- a/app/test/windowsSigning.test.ts
+++ b/app/test/windowsSigning.test.ts
@@ -20,4 +20,9 @@ describe('Windows signing', () => {
expect(preview).toContain('azureSignOptions.endpoint=https://eus.codesigning.azure.net/')
expect(preview).toContain('Get-AuthenticodeSignature')
})
+ it("signs the libraries too (#99: Code Integrity blocked an unsigned whisper.dll), and a release fails if a helper of Yogurt's own isn't signed", () => {
+ const builder = readFileSync(join(root, 'app/electron-builder.yml'), 'utf8')
+ expect(builder).toMatch(/signExts: \[".dll", ".node"\]/)
+ expect(preview).toContain('resources\\\\bin')
+ })
})