Files
rikkei_simple_care/client/build.sh
2026-07-01 09:49:27 +07:00

31 lines
905 B
Bash
Executable File

#!/bin/bash
set -e
# Change directory to client folder if not already there
cd "$(dirname "$0")"
echo "============================================="
echo " BUILDING WAILS CLIENT FOR MACOS "
echo "============================================="
# Check if wails is installed
WAILS_CMD="wails"
if ! command -v wails &> /dev/null; then
if [ -f "$HOME/go/bin/wails" ]; then
WAILS_CMD="$HOME/go/bin/wails"
echo "[*] Found Wails CLI at $WAILS_CMD"
else
echo "[-] Wails CLI not found. Please install Wails first."
echo " Run: go install github.com/wailsapp/wails/v2/cmd/wails@latest"
exit 1
fi
fi
echo "[*] Building macOS Apple Silicon (arm64)..."
"$WAILS_CMD" build -platform darwin/arm64
echo "[*] Building macOS Intel (amd64)..."
"$WAILS_CMD" build -platform darwin/amd64
echo "[+] macOS arm64 and amd64 builds completed successfully!"