forked from danwillm/VRCFT-SteamLink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-linux.sh
More file actions
79 lines (69 loc) · 2.24 KB
/
Copy pathsetup-linux.sh
File metadata and controls
79 lines (69 loc) · 2.24 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
# Initial setup script for Linux development
echo "======================================"
echo " VRCFT-SteamLink Linux Setup"
echo "======================================"
echo ""
# Check for required tools
echo "Checking prerequisites..."
# Check for git
if ! command -v git &> /dev/null; then
echo "❌ git is not installed. Please install it: sudo apt install git"
exit 1
fi
echo "✓ git found"
# Check for cmake
if ! command -v cmake &> /dev/null; then
echo "❌ cmake is not installed. Installing..."
sudo apt-get update
sudo apt-get install -y cmake
else
echo "✓ cmake found"
fi
# Check for build tools
if ! command -v g++ &> /dev/null; then
echo "❌ g++ is not installed. Installing build-essential..."
sudo apt-get update
sudo apt-get install -y build-essential
else
echo "✓ g++ found"
fi
# Check for .NET
if ! command -v dotnet &> /dev/null; then
echo "⚠️ .NET 7.0 SDK not found"
echo "Please install from: https://dotnet.microsoft.com/download/dotnet/7.0"
echo "Or use the Microsoft package repository:"
echo ""
echo " wget https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb"
echo " sudo dpkg -i packages-microsoft-prod.deb"
echo " rm packages-microsoft-prod.deb"
echo " sudo apt-get update"
echo " sudo apt-get install -y dotnet-sdk-7.0"
echo ""
else
DOTNET_VERSION=$(dotnet --version)
echo "✓ .NET found (version $DOTNET_VERSION)"
fi
echo ""
echo "Checking git submodules..."
# Initialize submodules if they haven't been
if [ ! -f "VRCFaceTracking/.git" ]; then
echo "Initializing submodules..."
git submodule update --init --recursive
else
echo "✓ Submodules initialized"
fi
echo ""
echo "Making build script executable..."
chmod +x build-linux.sh
echo ""
echo "======================================"
echo " Setup Complete!"
echo "======================================"
echo ""
echo "Next steps:"
echo " 1. Verify .NET 7.0 SDK is installed: dotnet --version"
echo " 2. Build the project: ./build-linux.sh Release"
echo " 3. The module will be installed to:"
echo " ~/.local/share/VRCFaceTracking/CustomLibs/b146eda9-be48-4016-ab63-680a694064bd"
echo ""