From 38d46ea37cb22748d9fdf1668c210961b101f4ad Mon Sep 17 00:00:00 2001 From: Ad_closeNN <1709301095@qq.com> Date: Wed, 14 Aug 2024 00:09:17 +0800 Subject: [PATCH] Create Run Build EXE.yml --- .github/workflows/Run Build EXE.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/Run Build EXE.yml diff --git a/.github/workflows/Run Build EXE.yml b/.github/workflows/Run Build EXE.yml new file mode 100644 index 0000000..45b9291 --- /dev/null +++ b/.github/workflows/Run Build EXE.yml @@ -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