-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
install.sh
74 lines (50 loc) · 1.73 KB
/
install.sh
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
# Install Homebrew if not already installed
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Update Homebrew
brew update
# Uninstall ios-deploy from npm if already
sudo npm uninstall -g ios-deploy
# Install ios-deploy via Homebrew by running
brew install ios-deploy
# Uninstall libimobiledevice if already installed
brew uninstall --ignore-dependencies libimobiledevice
# Uninstall usbmux daemon
brew uninstall --ignore-dependencies usbmuxd
# Install latest usbmux daemon
brew install --HEAD usbmuxd
# Unlink libplist
brew unlink libplist
# Install latest libplist
brew install --HEAD libplist
# Install latest libimobiledevice
brew install --HEAD libimobiledevice
# Install latest idevice installer
brew install --HEAD ideviceinstaller
# Recreate ideviceinstaller link
brew unlink ideviceinstaller && brew link ideviceinstaller
# Allow Execute, Read, and Write permissions on lockdown folder
sudo chmod -R 777 /var/db/lockdown/
# Install megatools
brew install megatools
# Download .NET 5 installer
wget https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh
# Make installer executable
chmod +x dotnet-install.sh
# Install .NET Core 2.1.0
./dotnet-install.sh --version 5.0.202
# Delete .NET Core 2.1.0 installer
rm dotnet-install.sh
# Clone repository
git clone https://github.com/versx/iPhoneController
# Change directory into cloned repository
cd iPhoneController
# Build iPhoneController.dll
~/.dotnet/dotnet build
# Copy example config
cp config.example.json bin/config.json
# Copy SAM pogo profile
cp sam_pogo.mobileconfig bin/sam_pogo.mobileconfig
# Change directory into build folder
#cd bin/
# Start iPhoneController.dll
#~/.dotnet/dotnet iPhoneController.dll