Skip to content

try mac pkgbuild gh action #49

try mac pkgbuild gh action

try mac pkgbuild gh action #49

Workflow file for this run

name: Cross-Platform Build
on: push
jobs:
pyinstaller-build-windows:
runs-on: windows-latest
steps:
- name: Build executable
uses: sayyid5416/pyinstaller@v1
id: pyinstaller
with:
python_ver: '3.12'
spec: maestro.spec
requirements: requirements.txt
# options: --icon "data/icons/maestro_icon.ico"
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: maestro-windows
path: ${{ steps.pyinstaller.outputs.executable_path }}
pyinstaller-build-mac:
runs-on: macos-12
steps:
- name: Build executable
uses: sayyid5416/pyinstaller@v1
id: pyinstaller
with:
python_ver: '3.12'
spec: maestro.spec
requirements: requirements.txt
# options: --icon "data/icons/maestro_icon.icns"
- name: Add install script
run: |
mv install-scripts/mac ${{ steps.pyinstaller.outputs.executable_path }}/Scripts/postinstall
- name: Create .pkg
id: pkgbuild
uses: PrajwalVandana/generate-mac-installer-github-action
with:
root-directory: ${{ steps.pyinstaller.outputs.executable_path }}/maestro
scripts-directory: ${{ steps.pyinstaller.outputs.executable_path }}/Scripts
identifier: com.maestro.maestro-cli
version: '1.1.1'
install-location: /usr/local/bin/maestro-bundle/
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: maestro-mac
path: ${{ steps.pkgbuild.outputs.output-path }}
pyinstaller-build-linux:
runs-on: ubuntu-20.04
steps:
- name: Build executable
uses: sayyid5416/pyinstaller@v1
id: pyinstaller
with:
python_ver: '3.12'
spec: maestro.spec
requirements: requirements.txt
- name: Add install script
run: |
mv install-scripts/ubuntu ${{ steps.pyinstaller.outputs.executable_path }}/maestro/install-maestro
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: maestro-ubuntu
path: ${{ steps.pyinstaller.outputs.executable_path }}/maestro