mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Fixed build issues
This commit is contained in:
1 parent
b8b466b608
commit
73f7fc4282
3 files changed
+26
-10
No files matched your search
@@ -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.)
|
||||
|
||||
@@ -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>
|
||||
@@ -28,7 +28,8 @@
|
||||
"icons/icon.ico"
|
||||
],
|
||||
"macOS": {
|
||||
"signingIdentity": "-"
|
||||
"signingIdentity": "-",
|
||||
"entitlements": "entitlements.plist"
|
||||
},
|
||||
"android": {
|
||||
"debugApplicationIdSuffix": ".debug"
|
||||
|
||||
Reference in new issue
Block a user