Fixed signing issue

This commit is contained in:
patben8 committed 2026-07-09 14:19:05 +02:00
1 parent bd85d6794c
commit b8b466b608
4 files changed
+28 -5

No files matched your search

+10
View File
@@ -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