Repository navigation
Build a macOS .dmg (universal), in CI and locally - #36
Merged
Merged
Conversation
- src-tauri/tauri.macos.conf.json (merged by Tauri on macOS): .dmg bundle, macOS 11+. Tauri makes the .icns from the existing PNGs. - CI: build-macos job on macos-14, `cargo tauri build --target universal-apple-darwin` (Apple Silicon and Intel), kivi-macos artifact, attached to releases. Not code-signed or notarised. - README and CLAUDE.md: building and installing on macOS, Gatekeeper, where settings live, the bundle_dmg.sh "Resource busy" workaround (CI=true), and what was tested by hand. Tested on Apple Silicon (macOS 27, KiCad 10.0.1): dev and .dmg builds, viewer, 3D, Settings → KiCad (KiCad.app, SharedSupport/3dmodels, ~/Library/Preferences/kicad), Open in KiCad, GitHub sign-in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
budenga
force-pushed
the
feat/macos-build
branch
from
November 7, 2026 20:41
01e66c8 to
d419936
Compare
Owner
|
Hi @budenga, thank you for being interested in KiVi project and thank you for your contribution! |
XyleMora
self-requested a review
November 7, 2026 22:37
XyleMora
approved these changes
Nov 7, 2026
Contributor
Author
|
Thanks @XyleMora for merging! When you cut the next release, the macOS .dmg should be attached automatically by the new build-macos job. Happy to help if anything goes wrong with it on the first tagged run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi! Thanks for KiVi. I've been looking for something like it for KiCad reviews on GitHub. The README lists a macOS build under "Not done yet" and asks for testing feedback, so I tried it on a Mac. It turned out to need packaging and CI only. The Rust side already handles macOS (
kicad.rsfindsKiCad.app,SharedSupport/3dmodelsand~/Library/Preferences/kicad, and opens projects withopen -a), and it compiles on macOS without any code changes.What this PR changes
src-tauri/tauri.macos.conf.json(new), merged by Tauri on macOS like the Windows one. It sets a.dmgbundle with a minimum of macOS 11. Tauri generatesKiVi.icnsfrom the existing PNGs, so no new icon files are needed.CI: a
build-macosjob onmacos-26. Like the Linux and Windows builds, it runs only on tags and manual runs. It callscargo tauri build --target universal-apple-darwin, which makes one.dmgfor both Apple Silicon and Intel, uploads it as thekivi-macosartifact, and attaches it to releases. It uses the sameKIVI_GITHUB_CLIENT_ID/KIVI_GITHUB_APP_SLUGvariables as the other builds.README / CLAUDE.md cover:
~/Library/WebKit/app.kivi.desktop);bundle_dmg.sh"Resource busy" workaround below;"macOS build" is also removed from "Not done yet".
Tested
On Apple Silicon, macOS 27, with KiCad 10.0.1 installed in
/Applications/KiCad:cargo tauri devand the release.dmg, installed to /Applications. Both compile with no warnings.greatscottgadgets/hackrf), and the schematic / PCB / 3D / BOM views. WebGL works fine in WKWebView./Applications/KiCad. It foundKiCad.app/Contents/MacOS/kicad, reported version 10.0.1, and listedKICAD10_3DMODEL_DIR(SharedSupport/3dmodels),KICAD10_3RD_PARTYand a custom variable fromkicad_common.json.liposhowsx86_64 arm64.KiVi_0.1.0_universal.dmg(13.6 MB).Not tested / not included
APPLE_CERTIFICATE,APPLE_ID, …); I left that out on purpose..dmgbuilds.bundle_dmg.sh's Finder styling sometimes left the disk image busy (hdiutil: couldn't unmount … Resource busy).CI=true cargo tauri buildskips that step, and Actions setsCIalready. I documented this in the README.Note
I used Claude Code to help with this (hence the
Co-Authored-Byline), and I tested everything above myself on my Mac.I'm happy to change anything: naming, the universal vs. per-architecture choice, wording, or splitting the docs out. 🙂
🤖 Generated with Claude Code