70 lines
1.9 KiB
Bash
Executable File
70 lines
1.9 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>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
|
|
|
|
echo "✅ Build complete!"
|
|
echo ""
|
|
echo "To run the application:"
|
|
echo " open EnhancedTerminal.app"
|
|
echo ""
|
|
echo "Or double-click EnhancedTerminal.app in Finder"
|