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.

Releases carry website-only copies of the Windows and Linux installers, and each copy checks for updates once a day

christianmat3184398bee46
diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml
index 3a8ad720..e3049fd7 100644
--- a/.github/workflows/preview.yml
+++ b/.github/workflows/preview.yml
@@ -3,7 +3,8 @@
# The installers carry the recorder, the system and AI apps helpers (Rust) and whisper-server with its backends, built
# here by scripts/native.mjs. Each one is installed on the runner and its helpers are run from the install folder.
# Linux builds on Ubuntu 22.04, so the AppImage's helpers run on glibc 2.35 and later.
-# release.yml calls this same workflow for a release's Windows and Linux files (installer, latest*.yml, blockmap).
+# release.yml calls this same workflow for a release's Windows and Linux files (installer, latest*.yml, blockmap, and
+# the website's copy of the installer).
name: Preview builds
on:
@@ -155,6 +156,17 @@ jobs:
$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 ', ')" }
+ # a release also carries a website-only copy of the installer under its own name, so GitHub's download counts tell
+ # new installs (the website's links) from updates (latest.yml / latest-linux.yml keep the plain name; never change it)
+ - name: Website copy (release)
+ if: inputs.release
+ run: |
+ if [ "$RUNNER_OS" = Windows ]; then from=Yogurt-windows-x64.exe; to=Yogurt-windows-x64-setup.exe
+ else from=Yogurt-linux-x86_64.AppImage; to=Yogurt-linux-x86_64-setup.AppImage; fi
+ cp "app/dist/$from" "app/dist/$to"
+ cmp "app/dist/$from" "app/dist/$to"
+ if grep -q -- "$to" app/dist/latest*.yml; then echo "::error::latest*.yml must name $from, not $to"; exit 1; fi
+ grep -q -- "$from" app/dist/latest*.yml || { echo "::error::latest*.yml doesn't name $from"; exit 1; }
# 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/.github/workflows/release.yml b/.github/workflows/release.yml
index ab2046c9..4a0f1c95 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,9 +1,11 @@
# A release: `sh app/scripts/release.sh 0.3.0` sets the version, tags v0.3.0 and pushes; this builds Yogurt for Mac
# (Apple Silicon), Windows (x64, unsigned) and Linux (x86_64 AppImage) and publishes one GitHub release with all
# three, only once every build and its checks have worked.
-# Download links point at releases/latest/download/Yogurt-mac-arm64.dmg, Yogurt-windows-x64.exe and
-# Yogurt-linux-x86_64.AppImage, and installed copies update themselves from the same release
-# (latest-mac.yml, latest.yml, latest-linux.yml; app/src/main/updates.ts).
+# Download links point at releases/latest/download/Yogurt-mac-arm64.dmg, Yogurt-windows-x64-setup.exe and
+# Yogurt-linux-x86_64-setup.AppImage, and installed copies update themselves from the same release
+# (latest-mac.yml → the .zip, latest.yml → Yogurt-windows-x64.exe, latest-linux.yml → Yogurt-linux-x86_64.AppImage;
+# app/src/main/updates.ts). The -setup files are byte-identical copies, so GitHub's download counts tell new installs
+# from updates; latest*.yml must never name them.
# Running it by hand (Actions → Release → Run workflow) only builds: the files are attached to the run, nothing is published.
# Windows and Linux are built by preview.yml, with the same checks (helpers run from the install folder, whisper-server
# transcribes); the Mac steps are below.
@@ -173,6 +175,16 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
ls -la files
+ # the website's copies are there and identical, and installed copies keep updating from the plain names
+ cd files
+ for f in Yogurt-windows-x64.exe Yogurt-windows-x64-setup.exe latest.yml Yogurt-linux-x86_64.AppImage Yogurt-linux-x86_64-setup.AppImage latest-linux.yml; do
+ [ -f "$f" ] || { echo "::error::$f is missing"; exit 1; }
+ done
+ cmp Yogurt-windows-x64.exe Yogurt-windows-x64-setup.exe
+ cmp Yogurt-linux-x86_64.AppImage Yogurt-linux-x86_64-setup.AppImage
+ grep -q 'Yogurt-windows-x64\.exe' latest.yml && grep -q 'Yogurt-linux-x86_64\.AppImage' latest-linux.yml || { echo "::error::latest*.yml lost the installer"; exit 1; }
+ if grep -q -- '-setup\.' latest*.yml; then echo "::error::latest*.yml must not name the website's copies"; exit 1; fi
+ cd ..
gh release create "${{ github.ref_name }}" files/* --repo "${{ github.repository }}" --title "Yogurt ${GITHUB_REF_NAME#v}" --generate-notes --latest
# a draft with a Mac built by hand gets the Windows and Linux files; it stays a draft
@@ -192,6 +204,16 @@ jobs:
DRAFT: ${{ inputs.draft }}
run: |
ls -la files
+ # the website's copies are there and identical, and installed copies keep updating from the plain names
+ cd files
+ for f in Yogurt-windows-x64.exe Yogurt-windows-x64-setup.exe latest.yml Yogurt-linux-x86_64.AppImage Yogurt-linux-x86_64-setup.AppImage latest-linux.yml; do
+ [ -f "$f" ] || { echo "::error::$f is missing"; exit 1; }
+ done
+ cmp Yogurt-windows-x64.exe Yogurt-windows-x64-setup.exe
+ cmp Yogurt-linux-x86_64.AppImage Yogurt-linux-x86_64-setup.AppImage
+ grep -q 'Yogurt-windows-x64\.exe' latest.yml && grep -q 'Yogurt-linux-x86_64\.AppImage' latest-linux.yml || { echo "::error::latest*.yml lost the installer"; exit 1; }
+ if grep -q -- '-setup\.' latest*.yml; then echo "::error::latest*.yml must not name the website's copies"; exit 1; fi
+ cd ..
id=$(gh api "repos/$REPO/releases" --paginate --jq ".[] | select(.tag_name == \"$DRAFT\" and .draft) | .id")
[ -n "$id" ] || { echo "::error::$DRAFT is no longer a draft"; exit 1; }
# never --clobber: a file already there means something else went wrong
diff --git a/README.md b/README.md
index 9e30ad16..6b353549 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ Our conversations should be our own business. Good notes shouldn't need third-pa
## Download
-Yogurt is free for [Mac](https://github.com/FrigadeHQ/yogurt/releases/latest/download/Yogurt-mac-arm64.dmg), [Windows](https://github.com/FrigadeHQ/yogurt/releases/latest/download/Yogurt-windows-x64.exe) and [Linux](https://github.com/FrigadeHQ/yogurt/releases/latest/download/Yogurt-linux-x86_64.AppImage).
+Yogurt is free for [Mac](https://github.com/FrigadeHQ/yogurt/releases/latest/download/Yogurt-mac-arm64.dmg), [Windows](https://github.com/FrigadeHQ/yogurt/releases/latest/download/Yogurt-windows-x64-setup.exe) and [Linux](https://github.com/FrigadeHQ/yogurt/releases/latest/download/Yogurt-linux-x86_64-setup.AppImage).
On a Mac you can also use [Homebrew](https://brew.sh).
diff --git a/app/electron-builder.yml b/app/electron-builder.yml
index 9f3cd323..7fb86321 100644
--- a/app/electron-builder.yml
+++ b/app/electron-builder.yml
@@ -4,6 +4,7 @@ copyright: Copyright © 2026 Frigade
# GitHub Releases: every v* tag builds Mac, Windows and Linux (.github/workflows/release.yml).
# Fixed file names, so releases/latest/download/Yogurt-mac-arm64.dmg (and the Windows and Linux ones) point at the newest.
# Installed copies update from the same release (latest-mac.yml, latest.yml, latest-linux.yml; src/main/updates.ts).
+# The website links the .dmg and, on Windows and Linux, the -setup copies release.yml adds; latest*.yml keep these names.
publish:
provider: github
owner: FrigadeHQ
diff --git a/app/src/main/settings.ts b/app/src/main/settings.ts
index 280ba8f3..d1bfe9bb 100644
--- a/app/src/main/settings.ts
+++ b/app/src/main/settings.ts
@@ -57,7 +57,9 @@ export type Settings = { theme?: 'light' | 'dark'; language?: string; /** what t
/** the default for newly written summaries; the meeting's language when left out */
summaryLanguage?: string
/** new versions download by themselves; on unless turned off */
- autoUpdate?: boolean }
+ autoUpdate?: boolean
+ /** when the updater last fetched latest*.yml (ms): checks happen about once a day (updates.ts) */
+ lastUpdateCheck?: number }
/** "English only" unless Multi-language was picked */
export const spokenSetting = (s: Settings): Spoken => spokenOf(s.spoken)
diff --git a/app/src/main/updates.ts b/app/src/main/updates.ts
index 89092194..f9acbd9c 100644
--- a/app/src/main/updates.ts
+++ b/app/src/main/updates.ts
@@ -4,8 +4,24 @@ import { t } from '../shared/i18n'
import type { UpdateStatus } from '../shared/types'
import { autoUpdateOn, loadSettings, updateSettings } from './settings'
-/** checking again while Yogurt stays open for days */
-const EVERY_MS = 4 * 60 * 60 * 1000
+const HOUR_MS = 60 * 60 * 1000
+const DAY_MS = 24 * HOUR_MS
+/** how often a running copy asks itself whether today's check is due */
+const TICK_MS = 15 * 60 * 1000
+
+/**
+ * Each copy fetches latest*.yml about once per UTC day, so the release feed's daily downloads roughly count the copies
+ * in use (no telemetry). Due when it never checked, on a later UTC day (once this copy's jitter, under an hour, has
+ * passed, so copies don't all ask GitHub at midnight), after more than 24 h, or when the saved time is in the future
+ * (the clock went back: that time can't be trusted, and waiting for it could mean weeks without updates).
+ */
+export function updateCheckDue(o: { now: number; last: number | undefined; jitterMs: number; on: boolean }): boolean {
+ if (!o.on) return false
+ const last = o.last
+ if (typeof last !== 'number' || !Number.isFinite(last) || last > o.now || o.now - last >= DAY_MS) return true
+ const today = Math.floor(o.now / DAY_MS) * DAY_MS
+ return last < today && o.now >= today + Math.min(Math.max(o.jitterMs, 0), HOUR_MS - 1)
+}
/**
* Installed copies update themselves from GitHub Releases (latest-mac.yml, latest.yml for the Windows installer,
@@ -35,7 +51,9 @@ export function finishQuit(): void {
* available: false in a build that never updates (see updatesOn); Settings then shows only the version.
* DOES NOT WORK WHILE RECORDING.
*/
-export async function hookUpdates(d: { file: string; available: boolean; recording(): boolean; /** started by an AI app and not opened yet: no notification (#147) */ quiet?(): boolean; /** fake mode: a version already downloaded */ fake?: { version: string; restarted(): void } }): Promise<void> {
+export async function hookUpdates(d: { file: string; available: boolean; recording(): boolean; /** started by an AI app and not opened yet: no notification (#147) */ quiet?(): boolean; /** fake mode: a version already downloaded */ fake?: { version: string; restarted(): void }; /** tests */ now?(): number; jitterMs?: number }): Promise<void> {
+ const now = d.now ?? Date.now
+ const jitterMs = d.jitterMs ?? Math.floor(Math.random() * HOUR_MS)
let runningVersion = app.getVersion()
let state: UpdateStatus['state'] = 'idle'
let next: string | undefined, dismissedVersion: string | undefined
@@ -78,7 +96,14 @@ export async function hookUpdates(d: { file: string; available: boolean; recordi
app.quit()
return true
})
+ // right away: at start (when due), Check for updates, and turning updates back on
const check = () => { if (!d.fake && updater && autoUpdateOn(loadSettings(d.file)) && state !== 'ready') updater.checkForUpdates().catch(() => {}) }
+ const checkIfDue = () => {
+ const s = loadSettings(d.file)
+ if (state !== 'checking' && updateCheckDue({ now: now(), last: s.lastUpdateCheck, jitterMs, on: autoUpdateOn(s) })) check()
+ }
+ // any feed that arrived counts as the day's check, a click on Check for updates too; a failed one is tried again next tick
+ const checked = () => updateSettings(d.file, { lastUpdateCheck: now() })
if (d.fake) { set('ready', d.fake.version); return }
if (!d.available) return
@@ -88,8 +113,8 @@ export async function hookUpdates(d: { file: string; available: boolean; recordi
updater.autoInstallOnAppQuit = autoUpdateOn(loadSettings(d.file))
updater.logger = null
updater.on('checking-for-update', () => set('checking'))
- updater.on('update-not-available', () => set('latest'))
- updater.on('update-available', (info) => set('downloading', info.version))
+ updater.on('update-not-available', () => { checked(); set('latest') })
+ updater.on('update-available', (info) => { checked(); set('downloading', info.version) })
updater.on('update-downloaded', (info) => {
set('ready', info.version)
if (!Notification.isSupported() || d.quiet?.()) return
@@ -99,6 +124,6 @@ export async function hookUpdates(d: { file: string; available: boolean; recordi
console.warn('checking for a new version failed', err.message)
set('error')
})
- setTimeout(check, 30_000)
- setInterval(check, EVERY_MS)
+ setTimeout(checkIfDue, 30_000)
+ setInterval(checkIfDue, TICK_MS)
}
diff --git a/app/test/updatesDaily.test.ts b/app/test/updatesDaily.test.ts
new file mode 100644
index 00000000..1e66a7b7
--- /dev/null
+++ b/app/test/updatesDaily.test.ts
@@ -0,0 +1,46 @@
+import { expect, it } from 'vitest'
+import { updateCheckDue } from '../src/main/updates'
+
+const at = (iso: string) => Date.parse(iso)
+const HOUR = 60 * 60 * 1000
+const due = (now: string, last: number | undefined, o: { jitterMs?: number; on?: boolean } = {}) =>
+ updateCheckDue({ now: at(now), last, jitterMs: o.jitterMs ?? 0, on: o.on ?? true })
+
+it('a copy that never checked checks now', () => {
+ expect(due('2026-11-23T15:00:00Z', undefined)).toBe(true)
+})
+
+it('once a day: not again on the same UTC day', () => {
+ expect(due('2026-11-23T23:59:00Z', at('2026-11-23T00:05:00Z'))).toBe(false)
+ expect(due('2026-11-23T10:00:00Z', at('2026-11-23T09:00:00Z'))).toBe(false)
+})
+
+it('the next UTC day checks again, a little after midnight for each copy', () => {
+ const last = at('2026-11-23T23:30:00Z')
+ expect(due('2026-11-24T00:01:00Z', last)).toBe(true)
+ expect(due('2026-11-24T00:20:00Z', last, { jitterMs: 40 * 60 * 1000 })).toBe(false)
+ expect(due('2026-11-24T00:41:00Z', last, { jitterMs: 40 * 60 * 1000 })).toBe(true)
+})
+
+it('more than 24 hours since the last check always checks', () => {
+ expect(due('2026-11-25T09:00:00Z', at('2026-11-23T09:00:00Z'), { jitterMs: 59 * 60 * 1000 })).toBe(true)
+ expect(due('2026-11-24T00:30:00Z', at('2026-11-23T00:29:00Z'), { jitterMs: 59 * 60 * 1000 })).toBe(true)
+})
+
+it('a clock that went backwards (last check in the future) checks, instead of waiting for that date', () => {
+ expect(due('2026-11-23T10:00:00Z', at('2027-01-01T00:00:00Z'))).toBe(true)
+ expect(due('2026-11-23T10:00:00Z', at('2026-11-23T10:05:00Z'))).toBe(true)
+})
+
+it('a broken saved time counts as never checked', () => {
+ expect(due('2026-11-23T10:00:00Z', Number.NaN)).toBe(true)
+})
+
+it('with automatic updates off, it never checks by itself', () => {
+ expect(due('2026-11-23T15:00:00Z', undefined, { on: false })).toBe(false)
+ expect(due('2026-11-25T15:00:00Z', at('2026-11-23T09:00:00Z'), { on: false })).toBe(false)
+})
+
+it('the jitter stays within the first hour', () => {
+ expect(due('2026-11-24T01:00:00Z', at('2026-11-23T12:00:00Z'), { jitterMs: 5 * HOUR })).toBe(true)
+})
diff --git a/app/test/updatesSwitch.test.ts b/app/test/updatesSwitch.test.ts
index 5c31fd43..57c1e9f1 100644
--- a/app/test/updatesSwitch.test.ts
+++ b/app/test/updatesSwitch.test.ts
@@ -56,3 +56,53 @@ it('Later hides only this version for this app session without changing installa
expect(updater.autoInstallOnAppQuit).toBe(true)
} finally { vi.clearAllTimers(); vi.useRealTimers() }
})
+
+it('a running copy fetches the feed once per UTC day; Check for updates still checks right away', async () => {
+ vi.useFakeTimers()
+ try {
+ updater.removeAllListeners()
+ updater.checkForUpdates.mockClear()
+ const { hookUpdates } = await import('../src/main/updates')
+ const { loadSettings, saveSettings } = await import('../src/main/settings')
+ const file = join(mkdtempSync(join(tmpdir(), 'yogurt-updates-')), 'settings.json')
+ let clock = Date.parse('2026-11-23T22:00:00Z')
+ const now = () => clock
+ // checked earlier today: nothing at start
+ saveSettings(file, { lastUpdateCheck: Date.parse('2026-11-23T08:00:00Z') })
+ await hookUpdates({ file, available: true, recording: () => false, now, jitterMs: 20 * 60 * 1000 })
+ const tick = async (ms: number) => { clock += ms; await vi.advanceTimersByTimeAsync(ms) }
+ await tick(60 * 60 * 1000)
+ expect(updater.checkForUpdates).not.toHaveBeenCalled()
+ // the day rolls over at 00:00 UTC, but this copy waits for its jitter
+ await tick(75 * 60 * 1000)
+ expect(updater.checkForUpdates).toHaveBeenCalledTimes(0)
+ await tick(15 * 60 * 1000)
+ expect(updater.checkForUpdates).toHaveBeenCalledTimes(1)
+ updater.emit('update-not-available')
+ expect(loadSettings(file).lastUpdateCheck).toBe(clock)
+ await tick(6 * 60 * 60 * 1000)
+ expect(updater.checkForUpdates).toHaveBeenCalledTimes(1)
+ handlers.get('updates:check')!()
+ expect(updater.checkForUpdates).toHaveBeenCalledTimes(2)
+ } finally { vi.clearAllTimers(); vi.useRealTimers() }
+})
+
+it('a feed that fails to arrive is tried again, and turning updates off stops the daily check', async () => {
+ vi.useFakeTimers()
+ try {
+ updater.removeAllListeners()
+ updater.checkForUpdates.mockClear()
+ const { hookUpdates } = await import('../src/main/updates')
+ const file = join(mkdtempSync(join(tmpdir(), 'yogurt-updates-')), 'settings.json')
+ await hookUpdates({ file, available: true, recording: () => false, now: () => Date.parse('2026-11-23T12:00:00Z'), jitterMs: 0 })
+ await vi.advanceTimersByTimeAsync(30_000)
+ expect(updater.checkForUpdates).toHaveBeenCalledTimes(1)
+ updater.emit('error', new Error('offline'))
+ await vi.advanceTimersByTimeAsync(15 * 60 * 1000)
+ expect(updater.checkForUpdates).toHaveBeenCalledTimes(2)
+ handlers.get('updates:set')!({}, false)
+ updater.emit('error', new Error('offline'))
+ await vi.advanceTimersByTimeAsync(60 * 60 * 1000)
+ expect(updater.checkForUpdates).toHaveBeenCalledTimes(2)
+ } finally { vi.clearAllTimers(); vi.useRealTimers() }
+})