SPB Git

spb/autoscholar

Public
808 B · 16 lines shellscript
1#!/bin/bash2# Builds a self-contained worker bundle (node_modules via pnpm deploy) into dist-bundle/ for rsync to the node.3set -euo pipefail4export CI=true5ROOT="$(cd "$(dirname "$0")/../../.." && pwd)"6OUT="$ROOT/dist-bundle/worker"7rm -rf "$OUT"; mkdir -p "$OUT"8cd "$ROOT"9pnpm --filter @autoscholar/worker... build10pnpm --filter @autoscholar/worker deploy --prod --legacy "$OUT/app" 2>/dev/null || pnpm --filter @autoscholar/worker deploy --prod "$OUT/app"11mkdir -p "$OUT/app/templates/latex" "$OUT/app/install"12cp research/templates/latex/* "$OUT/app/templates/latex/"13cp services/worker/install/run-worker.sh services/worker/install/install-macos.sh "$OUT/app/install/"14CI=true pnpm install --frozen-lockfile >/dev/null 2>&1 || true   # restore dev deps after deploy pruning15echo "bundle at $OUT/app"16
Files · 383b4a7db112f0b500b62b8954ec83d297cd5313
Menu

Theme