From 74b71f089a8e0f9b58cc7524038172b47dbf937e Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Tue, 9 Jun 2026 11:24:26 +0200 Subject: [PATCH] Add GitHub Actions workflow for building Windows EXE This workflow builds a Windows executable for the WoW Modernization Tool using PyInstaller and creates a GitHub release. --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..64a9806 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build Windows EXE + +on: + push: + tags: + - 'v*' + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install PyInstaller + run: pip install pyinstaller + + - name: Build EXE + run: > + pyinstaller + --noconsole + --onefile + --icon=PurpleWowLogo.ico + --add-data "Payload;Payload" + --add-data "vanilla-tweaks.exe;." + --name "WoW_Modernization_Tool" + setup_tool.py + + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + files: dist/WoW_Modernization_Tool.exe + name: "WoW Modernization Tool ${{ github.ref_name }}" + body: "Release automatique générée par GitHub Actions."