Files
overlord/build-desktop.sh
T

26 lines
644 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
2026-05-11 20:04:13 -05:00
echo "=== Building Overlord Desktop (Tauri) ==="
cd "$(dirname "$0")/Overlord-Desktop"
2026-05-11 20:04:13 -05:00
if ! command -v bun >/dev/null 2>&1; then
echo "error: bun is required (https://bun.sh)" >&2
exit 1
fi
if ! command -v cargo >/dev/null 2>&1; then
echo "error: rust toolchain is required (https://rustup.rs)" >&2
exit 1
fi
bun install
bun run vendor
case "$(uname -s)" in
Linux*) bun run build:linux ;;
Darwin*) bun run build:mac ;;
MINGW*|MSYS*|CYGWIN*) bun run build:win ;;
*) bun run build ;;
esac
echo "=== Done — bundle output: Overlord-Desktop/src-tauri/target/release/bundle/ ==="