- Changed AI Generator shortcut from Cmd+K to Cmd+I - Cmd+K now only triggers Clear Screen - Created custom terminal-style app icon with Python/PIL - Updated build script to include icon in app bundle - Updated all documentation with correct shortcuts - New DMG with icon included (492K)
78 lines
2.1 KiB
Bash
Executable File
78 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Enhanced Terminal Build Script
|
|
# This script compiles all Swift files and creates the application bundle
|
|
|
|
set -e
|
|
|
|
echo "🔨 Building Enhanced Terminal..."
|
|
|
|
# Clean previous build
|
|
rm -rf EnhancedTerminal.app
|
|
|
|
# Create app bundle structure
|
|
mkdir -p EnhancedTerminal.app/Contents/MacOS
|
|
mkdir -p EnhancedTerminal.app/Contents/Resources
|
|
|
|
# Compile all Swift files
|
|
echo "📦 Compiling Swift files..."
|
|
swiftc -o EnhancedTerminal.app/Contents/MacOS/EnhancedTerminal \
|
|
EnhancedTerminalApp.swift \
|
|
Settings.swift \
|
|
HistoryManager.swift \
|
|
SnippetManager.swift \
|
|
AIManager.swift \
|
|
TerminalSession.swift \
|
|
Panels.swift \
|
|
MainWindowController.swift \
|
|
-framework Cocoa \
|
|
-O
|
|
|
|
# Create Info.plist
|
|
echo "📝 Creating Info.plist..."
|
|
cat > EnhancedTerminal.app/Contents/Info.plist << 'EOF'
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>en</string>
|
|
<key>CFBundleExecutable</key>
|
|
<string>EnhancedTerminal</string>
|
|
<key>CFBundleIconFile</key>
|
|
<string>AppIcon</string>
|
|
<key>CFBundleIdentifier</key>
|
|
<string>com.enhanced.terminal</string>
|
|
<key>CFBundleInfoDictionaryVersion</key>
|
|
<string>6.0</string>
|
|
<key>CFBundleName</key>
|
|
<string>Enhanced Terminal</string>
|
|
<key>CFBundlePackageType</key>
|
|
<string>APPL</string>
|
|
<key>CFBundleShortVersionString</key>
|
|
<string>3.0</string>
|
|
<key>CFBundleVersion</key>
|
|
<string>1</string>
|
|
<key>LSMinimumSystemVersion</key>
|
|
<string>10.15</string>
|
|
<key>NSHighResolutionCapable</key>
|
|
<true/>
|
|
<key>NSPrincipalClass</key>
|
|
<string>NSApplication</string>
|
|
</dict>
|
|
</plist>
|
|
EOF
|
|
|
|
# Copy icon if it exists
|
|
if [ -f "AppIcon.icns" ]; then
|
|
echo "🎨 Adding app icon..."
|
|
cp AppIcon.icns EnhancedTerminal.app/Contents/Resources/
|
|
fi
|
|
|
|
echo "✅ Build complete!"
|
|
echo ""
|
|
echo "To run the application:"
|
|
echo " open EnhancedTerminal.app"
|
|
echo ""
|
|
echo "Or double-click EnhancedTerminal.app in Finder"
|