Skip to content

Commit

Permalink
fix venv
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixinol committed Jan 1, 2025
1 parent 6baf4dc commit 5b7522e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/Pyinstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,23 @@ jobs:
- name: Install Dependencies
run: |
pdm install --no-lock # Use --no-lock to avoid modifying the lock file
pdm run -m ensurepip --upgrade
pdm run pip install pyinstaller
pip install pyinstaller
if: env.skip_build != 'true'

- name: Build Binary with PyInstaller
run: pdm run pyinstaller GameYamlSpider.spec
- name: Build Binary with PyInstaller (Windows)
run: |
pyinstaller GameYamlSpider.spec
env:
PATH: ${{ github.workspace }}/.pdm/bin:${{ env.PATH }}
if: env.skip_build != 'true'

if: env.skip_build != 'true' && runner.os == 'Windows'
- name: Build Binary with PyInstaller (Unix)
run: |
source .venv/bin/activate
pyinstaller GameYamlSpider.spec
env:
PATH: ${{ github.workspace }}/.pdm/bin:${{ env.PATH }}
if: env.skip_build != 'true' && runner.os != 'Windows'
- name: Package with Zipfile (Unix)
if: runner.os != 'Windows' && env.skip_build != 'true'
run: python -m zipfile -c dist/GameYamlSpider.zip dist/GameYamlSpider
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all = [

[project]
name = "gameyamlspiderandgenerator"
version = "2.1.0dev5"
version = "2.1.0dev6"
description = "A useful tool for generating Furrygameindex yaml files"
readme = "README.md"
authors = [
Expand Down

0 comments on commit 5b7522e

Please sign in to comment.