Files
eagle0/tools/workspace_status.sh
91553a0eec Fix installer manifest public key injection (#5537)
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>
2026-01-21 20:29:25 -08:00

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