Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

fix(desktop): refuse macOS older than 14.0 with a clear message

claude-opus-5-5-medium51b9394bd958
diff --git a/README.md b/README.md
index 89c0fb49..e1d1ca65 100644
--- a/README.md
+++ b/README.md
@@ -146,11 +146,11 @@ For one person on one computer. Download the package for your platform from
opens Linger, connects this computer and runs its agents. **Quick Install** on its
setup screen sets up a Linger server on this computer too.
-| Platform | Package |
-| -------------------- | -------------------------------------------------------------------------------------------------- |
-| macOS, Apple silicon | `Linger-<version>-macos-arm64.dmg` |
-| Windows x64 | `Linger-<version>-windows-x64-setup.exe`, or `-windows-x64-portable.zip` to run without installing |
-| Linux x64 | `Linger-<version>-linux-x64.tar.gz` (glibc 2.35 or newer) |
+| Platform | Package |
+| ---------------------------------- | -------------------------------------------------------------------------------------------------- |
+| macOS 14.0 or later, Apple silicon | `Linger-<version>-macos-arm64.dmg` |
+| Windows x64 | `Linger-<version>-windows-x64-setup.exe`, or `-windows-x64-portable.zip` to run without installing |
+| Linux x64 | `Linger-<version>-linux-x64.tar.gz` (glibc 2.35 or newer) |
There is no package for Intel Macs; use Docker Compose there. Check each
download against `SHA256SUMS.txt` from the same release.
diff --git a/apps/desktop/AGENTS.md b/apps/desktop/AGENTS.md
index 59ac56b1..470394b2 100644
--- a/apps/desktop/AGENTS.md
+++ b/apps/desktop/AGENTS.md
@@ -120,6 +120,14 @@ Gateway and runs Agents. The daemon exits with the app.
TeamHub and a relay forwards it the same way; a fix needs a check that
the web port belongs to the web process the installer started. Every
existing session cookie for the origin has the same exposure.
+ On a Mac older than `MIN_MACOS` (14.0, the `LSMinimumSystemVersion`
+ `packaging/mac/package.py` writes), read with Electron's
+ `process.getSystemVersion()`, it neither fetches Node.js nor runs the
+ installer, and the failed step says "Linger needs macOS 14.0 or later.
+ This Mac runs macOS <version>. Update macOS in System Settings > General >
+ Software Update, then try again."; see
+ [Packaging Details](../../docs/desktop-release.md#packaging-details) for
+ where the minimum comes from.
Quick Install installs the `recommendation` of the localmodels setup
report (`installer.js --inspect`, run once as the setup window opens):
`local-models` is the planned model served by Pi, shown with the model,
diff --git a/apps/desktop/packaging/mac/package.py b/apps/desktop/packaging/mac/package.py
index 3a2a658d..7a9537a8 100644
--- a/apps/desktop/packaging/mac/package.py
+++ b/apps/desktop/packaging/mac/package.py
@@ -61,6 +61,10 @@ PRIVACY_USAGE = {
"NSDocumentsFolderUsageDescription": "Tasks you send to Linger can read and edit your documents.",
"NSDesktopFolderUsageDescription": "Tasks you send to Linger can read and edit files on your desktop.",
}
+# macOS refuses to open the app on an older system. The bundled PostgreSQL and
+# LiveKit's ffmpeg are built for 14.0; keep in step with MIN_MACOS in
+# src/main/local-server.ts.
+MINIMUM_MACOS = "14.0"
# Targets build.mjs bundles the Native services for; Intel Macs install them
# from the network.
NATIVE_TARGETS = {"darwin-arm64"}
@@ -173,7 +177,8 @@ def stage_app(arch, version, electron_version, workdir, cache):
update_plist(os.path.join(contents, "Info.plist"), CFBundleName="Linger",
CFBundleDisplayName="Linger", CFBundleExecutable="Linger",
CFBundleIdentifier=BUNDLE_ID, CFBundleShortVersionString=version,
- CFBundleVersion=version, **PRIVACY_USAGE)
+ CFBundleVersion=version, LSMinimumSystemVersion=MINIMUM_MACOS,
+ **PRIVACY_USAGE)
frameworks = os.path.join(contents, "Frameworks")
for name in sorted(os.listdir(frameworks)):
if not (name.startswith("Electron Helper") and name.endswith(".app")):
diff --git a/apps/desktop/src/main/index.ts b/apps/desktop/src/main/index.ts
index 70c6111c..7acc7627 100644
--- a/apps/desktop/src/main/index.ts
+++ b/apps/desktop/src/main/index.ts
@@ -185,6 +185,7 @@ async function main(): Promise<void> {
const home = lingerHome();
const localServer = new LocalServerModule({
home,
+ macosVersion: () => process.getSystemVersion(),
installerDirectory: path.join(here, "../installer"),
...(__SOURCE_ARCHIVE__ ? { sourceArchive: __SOURCE_ARCHIVE__ } : {}),
...(__SOURCE_DEPENDENCIES__
diff --git a/apps/desktop/src/main/local-server.test.ts b/apps/desktop/src/main/local-server.test.ts
index f2bc6a04..88909902 100644
--- a/apps/desktop/src/main/local-server.test.ts
+++ b/apps/desktop/src/main/local-server.test.ts
@@ -24,6 +24,7 @@ import {
LOCAL_INSTANCE,
LOCAL_STEPS,
LocalServerModule,
+ MIN_MACOS,
anotherMeMissing,
checkLocation,
followHttps,
@@ -393,6 +394,19 @@ const checkout = (home: string) => {
writeFileSync(path.join(home, "src", "scripts/source-native.mjs"), "");
};
+// A Mac checkout install; the fixture's distribution is for Linux.
+const macCheckout = (home: string) => {
+ checkout(home);
+ writeFileSync(
+ path.join(path.dirname(home), "installer", "distribution.json"),
+ JSON.stringify({
+ platform: "darwin",
+ arch: "arm64",
+ nativeSources: [{ target: "darwin-arm64" }],
+ }),
+ );
+};
+
describe("LocalServerModule", () => {
it("is offered only where native source mode runs", () => {
const { module } = fixture({
@@ -479,6 +493,54 @@ describe("LocalServerModule", () => {
await f.host.stop("quit");
});
+ it("refuses an older macOS before it runs the installer", async () => {
+ const f = fixture(
+ (home) => ({
+ ...withCheckout(home),
+ platform: "darwin",
+ arch: "arm64",
+ macosVersion: () => "13.2",
+ }),
+ {},
+ macCheckout,
+ );
+ await f.host.start();
+ expect(f.module.status().available).toBe(true);
+ await expect(f.module.begin()).rejects.toThrow(
+ "Linger needs macOS 14.0 or later. This Mac runs macOS 13.2. Update macOS in System Settings > General > Software Update, then try again.",
+ );
+ expect(f.module.status()).toMatchObject({
+ phase: "failed",
+ step: "prepare",
+ });
+ expect(existsSync(path.join(f.home, "installer", "args.json"))).toBe(false);
+ await f.host.stop("quit");
+ // From the minimum on, the installer runs.
+ const current = fixture(
+ (home) => ({
+ ...withCheckout(home),
+ platform: "darwin",
+ arch: "arm64",
+ macosVersion: () => "14.0",
+ }),
+ {},
+ macCheckout,
+ );
+ await current.host.start();
+ await current.module.begin().catch(() => undefined);
+ expect(existsSync(path.join(current.home, "installer", "args.json"))).toBe(
+ true,
+ );
+ await current.host.stop("quit");
+ // macOS refuses to open the app on an older system too.
+ const packaging = readFileSync(
+ path.join(import.meta.dirname, "../../packaging/mac/package.py"),
+ "utf8",
+ );
+ expect(packaging).toContain(`MINIMUM_MACOS = "${MIN_MACOS}"`);
+ expect(packaging).toContain("LSMinimumSystemVersion=MINIMUM_MACOS");
+ });
+
it("installs from the pinned source, signs in and connects this computer", async () => {
const root = tempDirectory();
const archive = sourceArchive(root);
diff --git a/apps/desktop/src/main/local-server.ts b/apps/desktop/src/main/local-server.ts
index b893b58a..625f704a 100644
--- a/apps/desktop/src/main/local-server.ts
+++ b/apps/desktop/src/main/local-server.ts
@@ -309,6 +309,9 @@ export interface LocalServerOptions {
readonly sessionCookie?: (origin: string) => Promise<string | undefined>;
readonly platform?: NodeJS.Platform;
readonly arch?: string;
+ // This Mac's macOS version (Electron's process.getSystemVersion); not
+ // checked without it.
+ readonly macosVersion?: () => string | undefined;
readonly fetch?: typeof fetch;
readonly pollMs?: number;
// The free space a picked folder needs; LOCATION_FREE_BYTES by default.
@@ -1225,6 +1228,12 @@ export class LocalServerModule implements Module {
return this.#options.freeBytes ?? LOCATION_FREE_BYTES;
}
+ #macos(): string | undefined {
+ if ((this.#options.platform ?? process.platform) !== "darwin")
+ return undefined;
+ return this.#options.macosVersion?.();
+ }
+
#target(): string {
return `${this.#options.platform ?? process.platform}-${this.#options.arch ?? process.arch}`;
}
@@ -1291,6 +1300,15 @@ export class LocalServerModule implements Module {
// Checking this computer and installing may both need Node at once.
#ensureNode(signal: AbortSignal): Promise<string> {
+ // The pinned Node.js and the native services do not start on an older
+ // macOS; say so instead of running the installer.
+ const macos = this.#macos();
+ if (macos && !atLeast(macos, MIN_MACOS))
+ return Promise.reject(
+ new Error(
+ `Linger needs macOS ${MIN_MACOS} or later. This Mac runs macOS ${macos}. Update macOS in System Settings > General > Software Update, then try again.`,
+ ),
+ );
this.#node ??= this.#fetchNode(signal).catch((error: unknown) => {
this.#node = undefined;
throw error;
@@ -2239,6 +2257,12 @@ interface BundledRuntime {
// PostgreSQL build: Ubuntu 22.04, Debian 12.
const MIN_GLIBC = "2.35";
+// The oldest macOS every binary Linger runs on a Mac starts on: the bundled
+// PostgreSQL and LiveKit's ffmpeg are built for 14.0 (Node.js 26 for 13.5,
+// Electron for 13.0). packaging/mac/package.py writes the same value as
+// LSMinimumSystemVersion.
+export const MIN_MACOS = "14.0";
+
const atLeast = (version: string, minimum: string): boolean => {
const [major = 0, minor = 0] = version.split(".").map(Number);
const [wantMajor = 0, wantMinor = 0] = minimum.split(".").map(Number);
diff --git a/docs/desktop-release.md b/docs/desktop-release.md
index 453865f4..5cd2160d 100644
--- a/docs/desktop-release.md
+++ b/docs/desktop-release.md
@@ -113,7 +113,7 @@ gh release upload native-deps <archive> --repo simplexai-labs/linger
| File | Contents |
| ---------------------------------------------- | --------------------------------------------------------------- |
-| `Linger-<version>-macos-arm64.dmg` | macOS, Apple silicon |
+| `Linger-<version>-macos-arm64.dmg` | macOS 14.0 or later, Apple silicon |
| `Linger-<version>-linux-x64.tar.gz` | Linux x64 (glibc 2.35 or newer for the bundled Native services) |
| `Linger-<version>-windows-x64-setup.exe` | Windows x64 per-user installer |
| `Linger-<version>-windows-x64-portable.zip` | Windows x64 folder to run without installing |
@@ -246,6 +246,18 @@ linger GitHub Release with `SHA256SUMS.txt`; see
fetches the bundled archives from the assets of the `native-deps` prerelease
there, so upload a new pinned archive to it before tagging.
+The Mac app needs macOS 14.0 or later: the bundled PostgreSQL and the
+`@livekit/av-darwin-arm64` ffmpeg are built for 14.0 (their Mach-O
+`LC_BUILD_VERSION` minimum), the pinned Node.js 26 for 13.5 and Electron for
+13.0. `packaging/mac/package.py` writes it as `LSMinimumSystemVersion`, so an
+older macOS refuses to open the app, and `MIN_MACOS` in
+`apps/desktop/src/main/local-server.ts` keeps the same value: LocalServer
+refuses to fetch Node.js or run the installer on an older macOS and says
+"Linger needs macOS 14.0 or later" instead. `prepare-native-postgres.mjs`
+sets no `MACOSX_DEPLOYMENT_TARGET`, so PostgreSQL's minimum is the macOS of
+the host that built it. Check every Mach-O file of a new pinned binary
+(`otool -l`, `minos`) before raising or lowering the value in both places.
+
Windows, Linux x64 and Apple silicon bundle PostgreSQL in the app instead
(`file` in `distribution/<target>.json`; 35 MB on Windows, 10–12 MB
elsewhere), so Native works without the CDN. Put the pinned archives in