-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·46 lines (40 loc) · 1.51 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·46 lines (40 loc) · 1.51 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
#!/bin/bash
set -e
# ─────────────────────────────────────────────────────────
# WhisperNotch — Project Setup
# Generates the .xcodeproj using XcodeGen
# ─────────────────────────────────────────────────────────
RED='\033[0;31m'
GREEN='\033[0;32m'
CYAN='\033[0;36m'
BOLD='\033[1m'
NC='\033[0m'
echo ""
echo -e "${CYAN}${BOLD}WhisperNotch — Project Setup${NC}"
echo ""
# Step 1: Check/install XcodeGen
if command -v xcodegen &> /dev/null; then
echo -e " ${GREEN}✓${NC} XcodeGen found: $(xcodegen --version 2>&1 | head -1)"
else
echo -e " ${CYAN}Installing XcodeGen via Homebrew…${NC}"
if ! command -v brew &> /dev/null; then
echo -e "${RED}Error: Homebrew not found. Install it from https://brew.sh${NC}"
echo " Then re-run this script."
exit 1
fi
brew install xcodegen
echo -e " ${GREEN}✓${NC} XcodeGen installed"
fi
# Step 2: Generate the Xcode project
echo ""
echo -e " ${BOLD}Generating WhisperNotch.xcodeproj…${NC}"
cd "$(dirname "$0")"
xcodegen generate
echo ""
echo -e "${GREEN}${BOLD}Done!${NC} Now open the project:"
echo ""
echo -e " ${CYAN}open WhisperNotch.xcodeproj${NC}"
echo ""
echo " Xcode will resolve the WhisperKit package automatically."
echo " Select the WhisperNotch scheme → My Mac → ⌘R to build & run."
echo ""