Add pyinstaller + tauri app #2
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 App with Pyinstaller | |
on: | |
pull_request: | |
# inputs: | |
# platform: | |
# description: 'platform' | |
# required: true | |
# default: 'macos-latest' | |
# type: choice | |
# options: | |
# - 'windows-latest' | |
# - 'macos-latest' | |
# - 'ubuntu-20.04' | |
jobs: | |
build: | |
env: | |
platform: ubuntu-20.04 | |
name: ubuntu-20.04 # ${{ env.platform }} | |
runs-on: ubuntu-20.04 # ${{ env.platform }} | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Conda (windows) | |
if: env.platform == 'windows-latest' | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: '' | |
- name: Install Monopoly dependencies (windows) | |
if: env.platform == 'windows-latest' | |
run: | | |
conda install -c conda-forge poppler | |
pip install -r requirements.txt | |
- name: Install Monopoly dependencies (mac) | |
if: env.platform == 'macos-latest' | |
run: | | |
brew install poppler | |
- name: Install Monopoly dependencies (ubuntu) | |
if: env.platform == 'ubuntu-20.04' | |
run: | | |
brew install poppler | |
- name: Create executable | |
uses: sayyid5416/pyinstaller@v1 | |
with: | |
python_ver: '3.11' | |
pyinstaller_ver: '==6.8.0' | |
spec: entrypoint.spec | |
requirements: requirements.txt | |
options: --onefile --name "monopoly" |