mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 20:55:44 +00:00
The manifest public key wasn't being injected properly because:
1. Workspace status variables need STABLE_ prefix for x_defs stamping
2. BUILD.bazel was using {MANIFEST_PUBLIC_KEY} but the variable
wasn't being output with the STABLE_ prefix
This caused the installer to try to base64 decode the literal string
"{MANIFEST_PUBLIC_KEY}" instead of the actual public key value.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
21 lines
722 B
Bash
Executable File
21 lines
722 B
Bash
Executable File
#!/bin/bash
|
|
# Workspace status script for Bazel stamping
|
|
# Outputs key-value pairs used by x_defs in BUILD files
|
|
|
|
# Get short git commit (7 characters)
|
|
GIT_COMMIT=$(git rev-parse --short=7 HEAD 2>/dev/null || echo "unknown")
|
|
echo "STABLE_GIT_COMMIT ${GIT_COMMIT}"
|
|
|
|
# Get build timestamp in ISO format
|
|
BUILD_TIME=$(date -u '+%Y-%m-%d %H:%M UTC')
|
|
echo "BUILD_TIMESTAMP ${BUILD_TIME}"
|
|
|
|
# Manifest public key for installer signature verification (from environment)
|
|
# Must use STABLE_ prefix for x_defs stamping to work
|
|
# Empty string means signature verification will be skipped
|
|
if [ -n "$MANIFEST_PUBLIC_KEY" ]; then
|
|
echo "STABLE_MANIFEST_PUBLIC_KEY ${MANIFEST_PUBLIC_KEY}"
|
|
else
|
|
echo "STABLE_MANIFEST_PUBLIC_KEY "
|
|
fi
|