-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·38 lines (30 loc) · 932 Bytes
/
install.sh
File metadata and controls
executable file
·38 lines (30 loc) · 932 Bytes
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
#!/bin/bash
# Colors for output
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
echo "Building GitHub Contribution Widget..."
# Build the app
xcodebuild -scheme GithubContributionWidgetMacOS \
-configuration Release \
-derivedDataPath build \
clean build
if [ $? -ne 0 ]; then
echo -e "${RED}Build failed. Please check the errors above.${NC}"
exit 1
fi
# Find the built app
APP_PATH=$(find build -name "*.app" -type d | head -n 1)
if [ -z "$APP_PATH" ]; then
echo -e "${RED}Could not find built application.${NC}"
exit 1
fi
# Copy to Applications
echo "Installing to Applications folder..."
cp -R "$APP_PATH" /Applications/
echo -e "${GREEN}Installation complete!${NC}"
echo "You can now find the app in your Applications folder."
echo ""
echo "Next steps:"
echo "1. Open the app to see the setup guide"
echo "2. Follow the instructions to configure your widget"