Create Run Build EXE.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |