Fixed build issues

This commit is contained in:
patben8 committed 2026-07-09 14:59:54 +02:00
1 parent b8b466b608
commit 73f7fc4282
3 files changed
+26 -10

No files matched your search

+8 -9
View File
@@ -11,15 +11,14 @@ 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
# NOTE: do NOT re-codesign this binary. PyInstaller already ad-hoc signs the
# one-file bootloader AND its packed libraries (Python.framework, etc.) with a
# matching identity. Re-signing only the outer bootloader (e.g. `codesign -s -`)
# desyncs the Team IDs, so at runtime dlopen of the extracted Python framework
# fails with "different Team IDs" and the sidecar dies on launch (which makes
# the Tauri app panic: "backend sidecar did not report a port"). The app bundle
# is ad-hoc signed separately via tauri.conf.json `bundle.macOS.signingIdentity`,
# which seals this binary without re-signing it.
# 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.)
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!--
The backend is a PyInstaller one-file binary: at launch it extracts its
bundled Python.framework to a temp dir and dlopen()s it. Tauri signs every
nested binary with the hardened runtime (adhoc,runtime), which enforces
library validation — and the extracted framework has a different Team ID
than the ad-hoc-signed bootloader, so it's rejected ("different Team IDs")
and the sidecar dies on launch. Disabling library validation lets it load.
-->
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>
+2 -1
View File
@@ -28,7 +28,8 @@
"icons/icon.ico"
],
"macOS": {
"signingIdentity": "-"
"signingIdentity": "-",
"entitlements": "entitlements.plist"
},
"android": {
"debugApplicationIdSuffix": ".debug"