add install script on ubuntu #48
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: 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: Upload executable | |
uses: actions/upload-artifact@v4 | |
with: | |
name: maestro-mac | |
path: ${{ steps.pyinstaller.outputs.executable_path }} | |
# - name: Create .pkg | |
# uses: akiojin/generate-mac-installer-github-action@v0.1.3 | |
# with: | |
# root-directory: # TODO | |
# identifier: com.maestro.maestro-cli | |
# version: '1.1.1' | |
# install-location: /Applications | |
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 | |
- name: Upload executable | |
uses: actions/upload-artifact@v4 | |
with: | |
name: maestro-ubuntu | |
path: ${{ steps.pyinstaller.outputs.executable_path }}/maestro |