Skip to content

Update main.yml

Update main.yml #9

Workflow file for this run

name: Build Executable
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12.2' # Replace 'x' with your desired Python version
- name: Install dependencies
run: |
pip install pyinstaller
- name: Build executable
run: |
pyinstaller --onefile --add-data="protontricks/:protontricks/" --add-data="Injector.exe:." pg3d-injector.py
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: executable
path: dist/main # Adjust the path to match your generated executable file