-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup-git-lfs.sh
More file actions
executable file
Β·41 lines (33 loc) Β· 1.13 KB
/
setup-git-lfs.sh
File metadata and controls
executable file
Β·41 lines (33 loc) Β· 1.13 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
set -e
echo "π§ Setting up Git LFS for VLCKit-SPM"
# Check if Git LFS is installed
if ! command -v git-lfs &> /dev/null; then
echo "π¦ Installing Git LFS via Homebrew..."
if command -v brew &> /dev/null; then
brew install git-lfs
else
echo "β Homebrew not found. Please install Git LFS manually:"
echo " Visit: https://git-lfs.github.io/"
echo " Or run: curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash"
exit 1
fi
fi
echo "β
Git LFS is available"
# Initialize Git LFS in the repository
echo "π Initializing Git LFS..."
git lfs install
# Track framework files
echo "π Setting up LFS tracking for framework files..."
git lfs track "*.xcframework"
git lfs track "*.framework"
git lfs track "VLCKit.xcframework/**"
# Show what's being tracked
echo "π Files tracked by Git LFS:"
git lfs track
echo "β
Git LFS setup complete!"
echo ""
echo "π Next steps:"
echo "1. Build/download the XCFramework"
echo "2. Add and commit files: git add . && git commit -m 'Initial commit'"
echo "3. Push to GitHub: git push origin main"