Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
1.7 kB · 56 lines
Shell
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657#!/bin/bash
# Wrapper script to build SpiderLily on Mac from dev container# Loads credentials from vault and executes build remotely## Usage:# ./build-spiderlily-from-devcontainer.sh # Normal build with P4 sync# ./build-spiderlily-from-devcontainer.sh --no-sync # Build using local files (no sync)
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"VAULT_DIR="$SCRIPT_DIR/../aesthetic-computer-vault"
# Parse argumentsEXTRA_ARGS=""for arg in "$@"; do case $arg in --no-sync|--skip-sync) EXTRA_ARGS="$EXTRA_ARGS --no-sync" ;; esacdone
# Load Mac credentialsif [ -f "$VAULT_DIR/false.work/mac-builder-credentials.env" ]; then source "$VAULT_DIR/false.work/mac-builder-credentials.env"else echo "ERROR: Credentials not found at $VAULT_DIR/false.work/mac-builder-credentials.env" exit 1fi
echo "========================================="echo "SpiderLily Remote Build (Dev Container → Mac)"echo "========================================="echo "Connecting to: $MAC_USERNAME@$MAC_HOST"echo ""
# Check if sshpass is availableif ! command -v sshpass &> /dev/null; then echo "Installing sshpass..." sudo dnf install -y sshpassfi
# Copy the build script to Macecho "📤 Uploading build script..."sshpass -p "$MAC_PASSWORD" scp \ "$SCRIPT_DIR/build-run-spiderlily.sh" \ "$MAC_USERNAME@$MAC_HOST:~/build-run-spiderlily.sh"
# Make it executable and run itecho "🚀 Starting build on Mac..."echo ""sshpass -p "$MAC_PASSWORD" ssh \ "$MAC_USERNAME@$MAC_HOST" \ "chmod +x ~/build-run-spiderlily.sh && ~/build-run-spiderlily.sh $EXTRA_ARGS"