-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·64 lines (53 loc) · 1.74 KB
/
setup.sh
File metadata and controls
executable file
·64 lines (53 loc) · 1.74 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# ExternalScreen - Project Setup Script
# This script sets up the Xcode project and dependencies
set -e
echo "=== ExternalScreen Project Setup ==="
echo ""
# Check for Homebrew
if ! command -v brew &> /dev/null; then
echo "Homebrew not found. Please install Homebrew first:"
echo " /bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""
exit 1
fi
# Install XcodeGen if not present
if ! command -v xcodegen &> /dev/null; then
echo "Installing XcodeGen..."
brew install xcodegen
fi
# Clone PeerTalk if not present
PEERTALK_DIR="Vendor/PeerTalk"
if [ ! -d "$PEERTALK_DIR" ]; then
echo "Cloning PeerTalk..."
mkdir -p Vendor
git clone https://github.com/rsms/peertalk.git "$PEERTALK_DIR"
fi
# Create symbolic links to PeerTalk sources in both projects
echo "Setting up PeerTalk integration..."
# For macOS
MAC_VENDOR="ExternalScreenMac/Vendor/PeerTalk"
if [ ! -d "$MAC_VENDOR" ]; then
mkdir -p "ExternalScreenMac/Vendor"
cp -r "$PEERTALK_DIR/peertalk" "$MAC_VENDOR"
fi
# For iOS
IOS_VENDOR="ExternalScreenIOS/Vendor/PeerTalk"
if [ ! -d "$IOS_VENDOR" ]; then
mkdir -p "ExternalScreenIOS/Vendor"
cp -r "$PEERTALK_DIR/peertalk" "$IOS_VENDOR"
fi
# Generate Xcode project
echo "Generating Xcode project..."
xcodegen generate
echo ""
echo "=== Setup Complete ==="
echo ""
echo "Next steps:"
echo "1. Open ExternalScreen.xcodeproj in Xcode"
echo "2. Select your development team in Signing & Capabilities"
echo "3. Build and run ExternalScreenMac on your Mac"
echo "4. Build and run ExternalScreenIOS on your iPad"
echo ""
echo "Note: The macOS app requires Screen Recording permission."
echo "Grant it in System Settings → Privacy & Security → Screen Recording"
echo ""