-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·58 lines (50 loc) · 1.6 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
#!/bin/bash
# Install Haxe
apt update
apt install sudo software-properties-common -y
sudo add-apt-repository ppa:haxe/releases -y
sudo apt-get update
sudo apt-get install haxe -y
mkdir ~/haxelib && haxelib setup ~/haxelib
# Install SDK dependencies
apt install bash clang-15 lld-15 socat cmake meson pkg-config wget unzip git -y
# Install SDK
DEFAULT_SDK_PATH="/opt/ps5-payload-sdk"
installSDK="true"
if [[ -d "$DEFAULT_SDK_PATH" ]]; then
installSDK="null"
while [ "$installSDK" == "null" ]
do
echo "It looks like you seem to have the PS5 SDK installed, would you like to refresh the installation? (y/n)"
read wantRefreshSDK
if [ "$wantRefreshSDK" == "y" ]; then
installSDK="true"
elif [ "$wantRefreshSDK" == "n" ]; then
installSDK="false"
else
echo "Invalid input, please try again."
fi
done
else
echo "SDK is not installed."
fi
if [[ "$installSDK" == "true" ]]; then
# Remove SDK
rm -r $DEFAULT_SDK_PATH
# Install Latest SDK
wget -P /opt https://github.com/ps5-payload-dev/sdk/releases/latest/download/ps5-payload-sdk.zip
sudo unzip -d /opt /opt/ps5-payload-sdk.zip
fi
# Install Haxe Libraries
haxelib install haxe-concurrent 5.1.4
haxelib install hscript 2.6.0
haxelib install rulescript 0.2.0
# Install HXCPP
mkdir -p ~/haxelib/hxcpp
if [ ! -d "$HOME/haxelib/hxcpp/ps5-payload" ]; then
git clone https://github.com/barisyild/hxcpp/ --branch ps5-payload ~/haxelib/hxcpp/ps5-payload
echo ps5-payload > ~/haxelib/hxcpp/.current
else
cd ~/haxelib/hxcpp/ps5-payload/ && git pull
fi
cd ~/haxelib/hxcpp/ps5-payload/tools/hxcpp/ && haxe compile.hxml