Skip to content

Update FastGMAD to commit 1bbec93 #36

Update FastGMAD to commit 1bbec93

Update FastGMAD to commit 1bbec93 #36

Workflow file for this run

name: Build Windows
on:
push:
branches:
- beta
paths:
- '.github/workflows/**'
- 'Src/**'
- 'version.txt'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Get Shortened Commit SHA
id: shorten_commit_sha
uses: iendeavor/[email protected]
with:
length: 7
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10.11'
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/utils.py;." --add-data "Src/Bin;Bin/" "Src/cli.py"
- name: Move Bin and Remove Gmad And 7-zip 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\Darwin\fastgmad' -Force
Remove-Item -Path 'dist\VAE\Bin\Linux\7zz' -Force
Remove-Item -Path 'dist\VAE\Bin\Darwin\7zz' -Force
- name: Upload artifact
uses: actions/[email protected]
with:
name: VAE-${{ steps.shorten_commit_sha.outputs.shortened_commit_sha }}-Windows-x64
path: dist/VAE