Skip to content

Commit

Permalink
Create Run Build EXE.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ad-closeNN authored Aug 13, 2024
1 parent ce9d22e commit 38d46ea
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/Run Build EXE.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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

0 comments on commit 38d46ea

Please sign in to comment.