From 0ea653b2abd049af65942225863b0f78ef9820ea Mon Sep 17 00:00:00 2001 From: Ad_closeNN <1709301095@qq.com> Date: Wed, 14 Aug 2024 07:01:44 +0800 Subject: [PATCH] Update Run Build EXE.yml --- .github/workflows/Run Build EXE.yml | 46 ++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Run Build EXE.yml b/.github/workflows/Run Build EXE.yml index 15471e6..547ed85 100644 --- a/.github/workflows/Run Build EXE.yml +++ b/.github/workflows/Run Build EXE.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - build: + build-x64: runs-on: windows-latest steps: @@ -30,11 +30,49 @@ jobs: run: pip install pyinstaller - name: Build EXE - run: pyinstaller --onefile main.py -i thinking.ico + run: pyinstaller --onefile --distpath dist/x64 main.py -i thinking.ico + + - name: Rename built EXE + run: move dist/x64/main.exe "dist/x64/LiteLoaderQQNT Auto Patch_x64.exe" + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: LiteLoaderQQNT Auto Patch_x64.exe + path: "dist/x64/LiteLoaderQQNT Auto Patch_x64.exe" + if-no-files-found: ignore + + build-x86: + 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 + - name: Install requirements + run: | + pip install -r requirements.txt + + - name: Install PyInstaller + run: pip install pyinstaller + + - name: Build EXE + run: pyinstaller --onefile --distpath dist/x86 --win32 main.py -i thinking.ico + + - name: Rename built EXE + run: move dist/x86/main.exe "dist/x86/LiteLoaderQQNT Auto Patch_x86.exe" - name: Upload artifact uses: actions/upload-artifact@v3 with: - name: main-exe - path: dist/main.exe + name: LiteLoaderQQNT Auto Patch_x86.exe + path: "dist/x86/LiteLoaderQQNT Auto Patch_x86.exe" if-no-files-found: ignore