Update FastGmad #22
Workflow file for this run
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: Build Windows | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/**' | |
- 'Src/**' | |
- 'version.txt' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8.10' | |
architecture: 'x64' | |
cache: 'pip' | |
- name: Create virtual environment | |
run: py -m venv .venv | |
- name: Activate virtual environment | |
run: .venv\Scripts\activate | |
- name: Install dependencies | |
run: pip install --upgrade pyinstaller rarfile py7zr | |
- name: Build with PyInstaller | |
run: | | |
pyinstaller --noconfirm --onedir --console --icon "Src/Icon/VAE.ico" --name "VAE" --clean --optimize "2" --version-file "version.txt" --add-data "Src/extract_addons.py;." --add-data "Src/extract_archives.py;." --add-data "Src/Bin;Bin/" "Src/cli.py" | |
- name: Move Bin and Remove Gmad And 7zip Linux/macOS | |
run: | | |
Move-Item -Path 'dist\VAE\_internal\Bin' -Destination 'dist\VAE\Bin' | |
Remove-Item -Path 'dist\VAE\Bin\Linux\fastgmad' -Force | |
Remove-Item -Path 'dist\VAE\Bin\Linux\7za' -Force | |
Remove-Item -Path 'dist\VAE\Bin\Darwin\fastgmad' -Force | |
Remove-Item -Path 'dist\VAE\Bin\Darwin\7za' -Force | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: VAE-2.x.x-Windows-x64 | |
path: dist/VAE |