Skip to content

Commit

Permalink
Update 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 8817220 commit 0ea653b
Showing 1 changed file with 42 additions and 4 deletions.
46 changes: 42 additions & 4 deletions .github/workflows/Run Build EXE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

jobs:
build:
build-x64:
runs-on: windows-latest

steps:
Expand All @@ -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

0 comments on commit 0ea653b

Please sign in to comment.