feat: add release build scripts and manifest (A-2, A-3)
- scripts/build_release.sh: Build 3 binaries + generate manifest - scripts/sign_binaries.sh: Ad-hoc sign binaries for macOS - RELEASE_MANIFEST.txt: Record binary sizes, MD5, SHA256 Solves: - A-2: Release build now includes momentry, rust_register, rust_unregister - A-3: Binaries are signed to avoid SIGKILL on release machines Verified: M4ProMini deployment (2026-10-04)
This commit is contained in:
Executable
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Sign release binaries with ad-hoc signature
|
||||
# Usage: ./scripts/sign_binaries.sh
|
||||
#
|
||||
# Why: macOS kills unsigned binaries with SIGKILL (exit code 137)
|
||||
# when copied from another machine.
|
||||
#
|
||||
# This script signs all binaries with ad-hoc signature ("-")
|
||||
# which is sufficient for local execution.
|
||||
|
||||
set -e
|
||||
|
||||
cd target/release
|
||||
|
||||
echo "=== Signing release binaries ==="
|
||||
|
||||
for B in momentry rust_register rust_unregister; do
|
||||
if [ -f "$B" ]; then
|
||||
echo "Signing $B..."
|
||||
codesign --force --sign - "$B"
|
||||
|
||||
# Verify signature
|
||||
if codesign -dv "$B" 2>&1 | grep -q "Signature"; then
|
||||
echo "✓ $B signed successfully"
|
||||
else
|
||||
echo "✗ Failed to sign $B"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "✗ Missing: $B"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "=== All binaries signed ==="
|
||||
Reference in New Issue
Block a user