#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"

python3 gen_icon.py
x86_64-w64-mingw32-windres resource.rc -O coff -o resource.o
x86_64-w64-mingw32-g++ -mwindows -O2 -s -o EOSHoloLauncher.exe main.cpp resource.o -static
echo "Built: EOSHoloLauncher.exe"
