Skip to content

Commit

Permalink
add github build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Official-Husko committed Jun 30, 2024
1 parent cd65d72 commit 88c6f44
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build Windows Executable

on:
push:
branches:
- development
- oop-rewrite

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12.4 # Specify the Python version you need

- name: Create virtual environment and build
shell: bash
run: |
python -m venv .env
source .env/Scripts/activate
python -m pip install --upgrade pip
pip install pyinstaller
pip install -r requirements.txt # Replace with your requirements file if exists
pyinstaller --paths .env/Lib/site-packages \
--hidden-import plyer.platforms.win.filechooser \
--add-data=".env/Lib/site-packages/grapheme/data/*;grapheme/data/" \
--onefile \
--icon "icon.ico" \
--console \
--name "Mul-Tor" \
main.py
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mul-tor-windows
path: dist/Mul-Tor.exe # Adjust the path to your executable relative to the root of the repository

0 comments on commit 88c6f44

Please sign in to comment.