fix build macos
This commit is contained in:
30
client/build.sh
Executable file
30
client/build.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/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!"
|
||||
Reference in New Issue
Block a user