Skip to content

Commit

Permalink
Add mor agents gh workflor mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanleung committed Sep 7, 2024
1 parent 05b4cc0 commit ddad90a
Show file tree
Hide file tree
Showing 3 changed files with 1,986 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/mor-agents-build-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: MOR Agents Build macOS

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build with PyInstaller
run: |
pyinstaller --windowed --name="MORagents" --icon="images/moragents.icns" --osx-entitlements-file "build_assets/macOS/MORagents.entitlements" main.py
- name: Install Packages app
run: |
wget http://s.sudre.free.fr/files/Packages_1211_dev.dmg
hdiutil attach Packages_1211_dev.dmg
sudo installer -pkg /Volumes/Packages\ 1.2.11/packages/Packages.pkg -target /
hdiutil detach /Volumes/Packages\ 1.2.11
- name: Create installer package
run: |
/usr/local/bin/packagesbuild --project MorpheusPackagesSudre.pkgproj
- name: Upload Installer
uses: actions/upload-artifact@v4
with:
name: MORagentsSetup-macOS
path: build/MORagents.pkg
Loading

0 comments on commit ddad90a

Please sign in to comment.