Skip to content

Add utils

Add utils #33

Workflow file for this run

name: Build macOS
on:
push:
branches:
- beta
paths:
- '.github/workflows/**'
- 'Src/**'
- 'version.txt'
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.10.11'
architecture: 'arm64'
cache: 'pip'
- name: Get Shortened Commit SHA
id: shorten_commit_sha
uses: iendeavor/[email protected]
with:
length: 7
- name: Create virtual environment
run: python3 -m venv .venv
- name: Activate virtual environment
run: source .venv/bin/activate
- name: Install dependencies
run: pip install --upgrade pyinstaller rarfile py7zr
- name: Build with PyInstaller
run: |
pyinstaller --noconfirm --onedir --console --name "VAE" --strip --clean --optimize "2" --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 7-zip Windows/Linux
run: |
mv dist/VAE/_internal/Bin dist/VAE/Bin
rm -r dist/VAE/Bin/Windows/fastgmad.exe
rm -f dist/VAE/Bin/Windows/7zz.exe
rm -f dist/VAE/Bin/Linux/fastgmad
rm -f dist/VAE/Bin/Linux/7zz
- name: Upload artifact
uses: actions/[email protected]
with:
name: VAE-${{ steps.shorten_commit_sha.outputs.shortened_commit_sha }}-macOS-Arm64
path: dist/VAE