Skip to content

Create Run Build EXE.yml #1

Create Run Build EXE.yml

Create Run Build EXE.yml #1

Workflow file for this run

name: 构建 exe 文件
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.4'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build EXE
run: pyinstaller --onefile main.py -i thinking.ico
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: exe-output
path: dist/LiteLoaderQQNT Auto Patch.exe