-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD_mac_simple.sh
More file actions
executable file
·41 lines (33 loc) · 1.1 KB
/
BUILD_mac_simple.sh
File metadata and controls
executable file
·41 lines (33 loc) · 1.1 KB
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
#!/bin/bash
# Simple Mac build script - creates app bundle without DMG
# Optimized for Apple Silicon (arm64) - Good for development and testing
set -e
echo "Building TD Launcher Plus (Mac - Simple)..."
# Activate virtual environment if it exists
if [ -d "td_launcher_env" ]; then
echo "Activating virtual environment..."
source td_launcher_env/bin/activate
echo "✅ Virtual environment activated"
else
echo "⚠️ No virtual environment found. Using system Python."
fi
# Check dependencies
if ! command -v pyinstaller &> /dev/null && ! python3 -c "import PyInstaller" 2>/dev/null; then
echo "Installing pyinstaller..."
pip3 install pyinstaller
fi
if ! python3 -c "import dearpygui" 2>/dev/null; then
echo "Installing dearpygui..."
pip3 install dearpygui
fi
# Clean and build
echo "Cleaning previous builds..."
rm -rf build/ dist/
echo "Building app bundle..."
pyinstaller --noconfirm --log-level=WARN "TD Launcher Plus.spec"
echo ""
echo "✅ Build completed!"
echo "📱 App bundle: dist/TD Launcher Plus.app"
echo ""
echo "🧪 To test:"
echo " open 'dist/TD Launcher Plus.app'"