-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (44 loc) · 1.45 KB
/
mor-agents-build-mac-intel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: MOR Agents Build macOS Intel
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- 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: Move .app to expected location
run: |
mv dist/MORagents.app build_assets/macOS/
- 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: |
cd build_assets/macOS
/usr/local/bin/packagesbuild --verbose --project MorpheusPackagesSudreIntel.pkgproj
- name: Upload Installer
uses: actions/upload-artifact@v4
with:
name: MORagentsSetup-macOS
path: ./build_assets/macOS/MORAgentsInstaller.pkg