Former/build.sh

20 lines
445 B
Bash
Executable File

#!/bin/bash
# Build Former for macOS
set -e
pkill -f "Former.app" || true
sleep 0.5
export SDKROOT=$(xcrun --show-sdk-path)
export CC=/usr/bin/clang
export CGO_ENABLED=1
WAILS=$(command -v wails || echo "$HOME/go/bin/wails")
# Generate app icon from Former.svg
echo "Generating app icon..."
go run ./cmd/genicon 2>/dev/null && echo "Icon generated." || echo "Icon generation skipped."
"$WAILS" build -skipbindings
open build/bin/Former.app