diff --git a/README.md b/README.md index f5153dc..1d117d4 100644 --- a/README.md +++ b/README.md @@ -158,10 +158,20 @@ The installers land in `frontend\src-tauri\target\release\bundle\` (an `.msi` an an NSIS `-setup.exe`). See [BUILDING-WINDOWS.md](BUILDING-WINDOWS.md) for the full walkthrough and Windows-specific notes. -> **Note:** builds are currently **unsigned**, so the first launch is flagged by -> the OS — on macOS right-click → **Open** to get past Gatekeeper; on Windows -> click **More info → Run anyway** past SmartScreen. The macOS `.dmg` is -> Apple-Silicon (`aarch64`) only. +> **First launch — getting past the OS security prompt.** Builds are +> **ad-hoc signed, not notarized** (no paid Apple/Windows developer cert yet), so +> the OS flags them the first time. This is expected — the app isn't damaged. +> +> - **macOS:** right-click the app → **Open** → **Open** (or System Settings → +> Privacy & Security → **Open Anyway** after the first blocked attempt). If it +> still refuses — common for a `.dmg` downloaded via a browser, which macOS +> quarantines — clear the quarantine flag once from Terminal: +> ```bash +> xattr -cr /Applications/Konduktor.app +> ``` +> - **Windows:** click **More info → Run anyway** past SmartScreen. +> +> The macOS `.dmg` is Apple-Silicon (`aarch64`) only. > **Faster local builds:** `npx tauri build --debug --bundles app` skips the > optimizer and the installer, giving you a runnable app in seconds — handy while diff --git a/backend/build_sidecar.sh b/backend/build_sidecar.sh index bd75181..92c2abd 100755 --- a/backend/build_sidecar.sh +++ b/backend/build_sidecar.sh @@ -11,6 +11,16 @@ PY="${PY:-.venv/bin/python}" "$PY" -m PyInstaller --noconfirm --clean konduktor-sidecar.spec echo "Built: $ROOT/dist/konduktor-sidecar" +# macOS: ad-hoc sign the sidecar so the app can spawn it. On Apple Silicon the +# OS kills unsigned executables on exec, and a signed .app (see tauri.conf.json +# bundle.macOS.signingIdentity "-") isn't enough on its own — the nested sidecar +# must be signed too. Ad-hoc (`-s -`) needs no cert/keychain; --force re-signs +# cleanly even if Tauri signs it again during bundling. +if [ "$(uname)" = "Darwin" ] && command -v codesign >/dev/null 2>&1; then + codesign --force -s - "$ROOT/dist/konduktor-sidecar" + echo "Ad-hoc signed: $ROOT/dist/konduktor-sidecar" +fi + # Stage for Tauri: the sidecar must be named with the host target triple so the # shell plugin can resolve it in both dev and bundle. (rustc must be on PATH.) if command -v rustc >/dev/null 2>&1; then diff --git a/frontend/src-tauri/Cargo.lock b/frontend/src-tauri/Cargo.lock index 244a154..14f9903 100644 --- a/frontend/src-tauri/Cargo.lock +++ b/frontend/src-tauri/Cargo.lock @@ -77,7 +77,7 @@ checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3" [[package]] name = "app" -version = "0.1.0" +version = "0.1.1" dependencies = [ "log", "serde", diff --git a/frontend/src-tauri/tauri.conf.json b/frontend/src-tauri/tauri.conf.json index 89035ef..4d0f4ee 100644 --- a/frontend/src-tauri/tauri.conf.json +++ b/frontend/src-tauri/tauri.conf.json @@ -27,6 +27,9 @@ "icons/icon.icns", "icons/icon.ico" ], + "macOS": { + "signingIdentity": "-" + }, "android": { "debugApplicationIdSuffix": ".debug" }