feat: Linux support (.deb / .rpm / AppImage)#13
Merged
Conversation
Splits the Tauri config into platform-specific overlays so the macOS-only window chrome (vibrancy sidebar, traffic-light overlay, transparent window, macOSPrivateApi) stays out of the Linux build. Adds a build-linux job that publishes deb/rpm/AppImage to the same GitHub Release as the macOS bundle, extends install.sh with an AppImage path that drops a binary into ~/.local/bin and registers a .desktop entry, and updates the README.
…uild is consistent tauri-build cross-checks the merged tauri.conf.json `app.macOSPrivateApi` flag against the `macos-private-api` Cargo feature on every platform. Putting the flag only in `tauri.macos.conf.json` made Linux see "feature on, allowlist off" and fail. Move the flag back to the base config and document why the Cargo feature stays on for all targets — Tauri internally `cfg`-guards the API to macOS, so it's a runtime no-op on Linux/Windows.
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.
Summary
tauri.macos.conf.json,tauri.linux.conf.json) so macOS-only window chrome (vibrancy sidebar, traffic-light overlay, transparent window,macOSPrivateApi) is dropped from the Linux build instead of generating warnings or runtime breakage.build-linuxjob torelease.ymlthat runs afterbuild-macosand publishes.deb,.rpm, and AppImage artifacts to the same GitHub Release usingtauri-action. The Homebrew tap bump is unchanged and still scoped to macOS.install.shwith a Linux path: detects the AppImage in the latest release, installs to~/.local/bin/loom-oc, and registers a~/.local/share/applications/loom-oc.desktopentry. macOS DMG flow is preserved (and now useshdiutil -plistto find the mount point reliably).The frontend already detects Linux/Windows (
platform.svelte.ts) and only applies vibrancy via.platform-macosrules, so no UI changes were needed.Notes
macos-private-apistays in[dependencies](not gated per-target). It's only required becausemacOSPrivateApi: truelives intauri.macos.conf.json, which is not merged on Linux — so the build script doesn't fail. The feature itself is internallycfg(target_os = "macos")in Tauri, making it a no-op elsewhere. A target-specific Cargo dep was tried first but Cargo didn't reliably union features for the duplicated declaration.tauri-action..debdeclareslibwebkit2gtk-4.1-0andlibgtk-3-0runtime deps. AppImage users on minimal distros may still need to install these manually.Test plan
pnpm check(svelte-check 0 errors)pnpm test(46/46)pnpm buildcargo test --lib(55/55, tauri-build config-merge passes on macOS)cargo fmt --all -- --checkcargo clippy --all-targets -- -D warningstauri.*.conf.jsonfilesbash -n install.shv*tag will exercise the Linux release job end-to-end; can also be smoke-tested viaworkflow_dispatchor by tagging an-rcbuild.