File size: 1,084 Bytes
873d0cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/sh
# Requireed installations
pip install ".[base]"
pip install '.[agentic]'
brew install create-dmg
pip install pyinstaller==6.9.0


# Pyinstaller
pyinstaller --recursive-copy-metadata gpt_computer_agent run.py --windowed --add-data="gpt_computer_agent/utils/media/*":"gpt_computer_agent/utils/media" --icon="gpt_computer_agent/utils/media/icon.icns" --name="GPT_Computer_Agent"
# Create a DMG
# Create a folder (named dmg) to prepare our DMG in (if it doesn't already exist).
mkdir -p dist/dmg
# Empty the dmg folder.
rm -r dist/dmg/*
# Copy the app bundle to the dmg folder.
cp -r "dist/GPT_Computer_Agent.app" dist/dmg
# If the DMG already exists, delete it.
test -f "dist/GPT_Computer_Agent.dmg" && rm "dist/GPT_Computer_Agent.dmg"
create-dmg \
  --volname "GPT_Computer_Agent" \
  --volicon "gpt_computer_agent/utils/media/icon.icns" \
  --window-pos 200 120 \
  --window-size 600 300 \
  --icon-size 100 \
  --icon "GPT_Computer_Agent.app" 175 120 \
  --hide-extension "GPT_Computer_Agent.app" \
  --app-drop-link 425 120 \
  "dist/GPT_Computer_Agent.dmg" \
  "dist/dmg/"