From bf6a4a38f3f894aaa6be47de3968d705d3b68cda Mon Sep 17 00:00:00 2001 From: Manuel Staggl Date: Sat, 14 Nov 2026 19:14:51 +0100 Subject: [PATCH] feat: link the experimental macOS build and answer the Mac question From 0.3.1 a release can carry a universal dmg. The hero's fine line links it as a test build, the FAQ explains Gatekeeper and the limits, JSON-LD names macOS, and the SolidCraft answer states the 0.40.1 minimum. Co-Authored-By: Claude Opus 5.5 --- src/config.ts | 2 ++ src/lib/releases.ts | 4 +++- src/pages/index.astro | 12 +++++++----- test/fixtures/releases.json | 1 + test/releases.test.ts | 2 ++ 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/config.ts b/src/config.ts index 1411d3e..44cf090 100644 --- a/src/config.ts +++ b/src/config.ts @@ -12,6 +12,8 @@ export const SITE_URL = 'https://partbuddy.github.io'; export const GOATCOUNTER_URL = 'https://stats.mstaggl.me'; export const DOWNLOAD_URL = latest?.downloadUrl ?? 'https://github.com/PartBuddy/partbuddy/releases/latest'; +export const MAC_URL = latest?.macUrl; + export const REPO_URL = 'https://github.com/PartBuddy/partbuddy'; // Star count, read once at build time like the releases (visitors make no requests); without network // the star links show no number. The daily scheduled deploy keeps it current. diff --git a/src/lib/releases.ts b/src/lib/releases.ts index 4227632..d790e0d 100644 --- a/src/lib/releases.ts +++ b/src/lib/releases.ts @@ -17,7 +17,7 @@ export type RawRelease = { export type Section = { title: string; items: string[] }; // The user-facing highlights of a release: the "## What's new" section its author writes by hand. export type News = { headline: string; items: { title: string; text: string }[]; shot?: string }; -export type Release = { version: string; date: string; dateLabel: string; url: string; downloadUrl: string; sections: Section[]; news?: News }; +export type Release = { version: string; date: string; dateLabel: string; url: string; downloadUrl: string; macUrl?: string; sections: Section[]; news?: News }; // The site shows only what is in the app: no breaking-change notes, docs, CI or build work, no // entries of the prototype, runner or site. @@ -91,6 +91,8 @@ export function parseReleases(raw: RawRelease[]): Release[] { url: r.html_url, // The Windows installer if the release has one, else the release page. downloadUrl: r.assets?.find((a) => /\.exe$/i.test(a.name))?.browser_download_url ?? r.html_url, + // The experimental macOS dmg, from 0.3.1 on. + macUrl: r.assets?.find((a) => /.dmg$/i.test(a.name))?.browser_download_url, sections: parseNotes(r.body), news: parseNews(r.body), })); diff --git a/src/pages/index.astro b/src/pages/index.astro index 6c5af8d..181f5c3 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,7 +5,7 @@ import Brand from '../components/Brand.astro'; import { getImage } from 'astro:assets'; import type { ImageMetadata } from 'astro'; import { ArrowRight, ArrowUpRight, Download, Plus, Check, X, Minus, FolderLock, Cpu, EyeOff, Play, Star } from '@lucide/astro'; -import { RELEASED, SITE_URL, DOWNLOAD_URL, REPO_URL, STARS, latest } from '../config'; +import { RELEASED, SITE_URL, DOWNLOAD_URL, MAC_URL, REPO_URL, STARS, latest } from '../config'; import { channels, KOFI_URL, SOLIDCRAFT, hero, worksWith, chapters, standards, bento, privacy, models, roadmap as status } from '../data/site'; import { compare } from '../data/compare'; @@ -30,9 +30,11 @@ const faq = [ { q: 'Can it run locally?', a: [`Yes, with ${models.local.slice(0, -1).join(', ')} or ${models.local.at(-1)}. ${models.localNote}`] }, { q: 'Is the result real CAD or a mesh?', a: ['Real CAD. SolidCraft builds editable solid geometry with a full history, so you can change any size later and export STEP for other CAD programs as well as 3MF and STL for printing.'] }, { q: 'Does it do supports and print orientation?', a: ['No, on purpose. That is slicer work, and your slicer knows your printer profile. PartBuddy designs the part, checks what can only be decided while designing, and opens it in Bambu Studio or OrcaSlicer.'] }, - { q: 'Does it run only on Windows?', a: ['Yes. PartBuddy is a Windows desktop app.'] }, + { q: 'Does it run only on Windows?', a: MAC_URL + ? ['Windows is the main platform. Since 0.3.1 there is also an experimental build for macOS (Apple silicon and Intel): download the dmg. It is not signed by Apple and gets no automatic updates, and so far only its start has been tested, so feedback is welcome.', 'macOS blocks the first start: open System Settings, then Privacy & Security, and choose Open Anyway. SolidCraft has its own Mac build.'] + : ['Yes. PartBuddy is a Windows desktop app.'] }, { q: 'What is SolidCraft?', a: ['The CAD engine behind PartBuddy. It builds the geometry; PartBuddy runs it in the background and shows every step in its own 3D view. You install SolidCraft yourself, and the setup on first start helps you find it.'] }, - { q: 'Which SolidCraft version do I need?', a: [`SolidCraft ${SOLIDCRAFT.version}. Download SolidCraft-${SOLIDCRAFT.version}-windows-x64.exe from its release page. The release marked “Latest” on SolidCraft’s GitHub page can be newer than the version PartBuddy is tested with.`, `Versions before 0.40 can’t open designs saved by 0.40, and the next PartBuddy release no longer starts with them.`] }, + { q: 'Which SolidCraft version do I need?', a: [`SolidCraft ${SOLIDCRAFT.version}. Download SolidCraft-${SOLIDCRAFT.version}-windows-x64.exe from its release page. The release marked “Latest” on SolidCraft’s GitHub page can be newer than the version PartBuddy is tested with.`, `PartBuddy needs SolidCraft 0.40.1 or newer and does not start with older versions.`] }, { q: 'Why not connect Claude or ChatGPT to SolidCraft directly?', a: ['You can: SolidCraft has its own MCP server, and PartBuddy drives the same engine. What PartBuddy adds is everything around it.', 'It asks about loads, fits and real sizes and shows a plan before it builds. It checks every change against your printer and material. ISO fasteners, inserts and fits measured on your printer are built in. You click a face and pin a note to it, so the assistant knows exactly which face you mean, even after a rebuild.', 'The assistant works only through PartBuddy’s checks and only in your project folder. Every step can be taken back, versions can be compared, and the part goes straight to your slicer. And there is nothing to configure: sign in with your plan and start.'] }, ...(RELEASED ? [{ q: 'Why does Windows warn about the installer?', a: ['PartBuddy is a hobby project and its installer is not code-signed, so Windows SmartScreen may show a warning. Choose More info, then Run anyway. The source code is public.'] }] : []), ]; @@ -45,7 +47,7 @@ const jsonLd = { url: `${SITE_URL}/`, image: `${SITE_URL}/og.png`, applicationCategory: 'DesignApplication', - operatingSystem: 'Windows', + operatingSystem: MAC_URL ? 'Windows, macOS' : 'Windows', inLanguage: ['en', 'de'], offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' }, sameAs: channels.map((c) => c.url), @@ -72,7 +74,7 @@ const jsonLd = { ? : See how it works} -

{hero.fine}

+

{hero.fine}{MAC_URL && <> · macOS test build}

{RELEASED &&

Needs the free CAD engine SolidCraft {SOLIDCRAFT.version}.

} diff --git a/test/fixtures/releases.json b/test/fixtures/releases.json index c768327..7495917 100644 --- a/test/fixtures/releases.json +++ b/test/fixtures/releases.json @@ -8,6 +8,7 @@ "prerelease": false, "assets": [ { "name": "PartBuddy-Setup-0.2.0.exe", "browser_download_url": "https://github.com/PartBuddy/partbuddy/releases/download/v0.2.0/PartBuddy-Setup-0.2.0.exe" }, + { "name": "PartBuddy-0.2.0-mac-universal.dmg", "browser_download_url": "https://github.com/PartBuddy/partbuddy/releases/download/v0.2.0/PartBuddy-0.2.0-mac-universal.dmg" }, { "name": "latest.yml", "browser_download_url": "https://github.com/PartBuddy/partbuddy/releases/download/v0.2.0/latest.yml" } ] }, diff --git a/test/releases.test.ts b/test/releases.test.ts index 4e16ef8..13b6dc5 100644 --- a/test/releases.test.ts +++ b/test/releases.test.ts @@ -12,11 +12,13 @@ test('release-please notes become versions, sections and a download link', async assert.equal(latest.date, '2026-12-01'); assert.equal(latest.dateLabel, '1 Dec 2026'); assert.match(latest.downloadUrl, /PartBuddy-Setup-0\.2\.0\.exe$/); + assert.match(latest.macUrl ?? '', /mac-universal\.dmg$/); assert.deepEqual(latest.sections, [ { title: 'Features', items: ['desktop: sharing package lists the standard parts to buy', 'assistant chat polish with Markdown'] }, { title: 'Bug Fixes', items: ['desktop: expired sign-in is shown in the chat'] }, ]); assert.equal(older.downloadUrl, older.url, 'without an installer the button opens the release page'); + assert.equal(older.macUrl, undefined, 'without a dmg there is no Mac link'); }); test("the hand-written What's new becomes headline, items and shot, and stays out of the change lists", () => {