#!/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/"