#!/usr/bin/env bash
set -e

ROOT="$(cd "$(dirname "$0")/.." && pwd)"

echo "[DroidScope] Building frontend..."
cd "$ROOT/frontend-react"
npm run build

echo "[DroidScope] Building desktop app..."
cd "$ROOT/desktop"
export PATH="$PATH:$(go env GOPATH)/bin"
wails build

echo "[DroidScope] Build complete: desktop/build/bin/"
