From 14eec49a491bf6bc4f1b1c7045cce3629667c233 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sat, 6 Dec 2025 01:51:09 +0100 Subject: [PATCH] Add a build script --- build.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 000000000..7706b75b9 --- /dev/null +++ b/build.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +set -e + +echo "Building pyfa binary..." + +# Ensure we're using the local venv +if [ ! -d ".venv" ]; then + echo "Creating virtual environment..." + uv venv +fi + +# Install dependencies +echo "Installing dependencies..." +uv pip install -r requirements.txt +uv pip install pyinstaller + +# Clean previous builds +echo "Cleaning previous builds..." +rm -rf build dist + +# Build the binary +echo "Building binary with PyInstaller..." +uv run pyinstaller pyfa.spec + +echo "" +echo "Build complete! Binary is located at: dist/pyfa/pyfa.exe" +echo "You can run it with: dist/pyfa/pyfa.exe"