16 lines
435 B
Bash
16 lines
435 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
root_dir=$(CDPATH= cd -- "$script_dir/.." && pwd)
|
|
NODEFLARE_VERSION=$(sh "$script_dir/resolve-version.sh")
|
|
VITE_NODEFLARE_VERSION=$NODEFLARE_VERSION
|
|
export VITE_NODEFLARE_VERSION
|
|
cd "$root_dir"
|
|
|
|
bun run --cwd frontend build
|
|
|
|
if build_key=$(sh scripts/build-key.sh frontend 2>/dev/null); then
|
|
printf '%s\n' "$build_key" > frontend/dist/.nodeflare-revision
|
|
fi
|