forked from hmxmilohax/rock-band-3-deluxe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
_build_ps3.sh
44 lines (35 loc) · 1.69 KB
/
_build_ps3.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
#!/bin/bash
# Set a variable to track whether the ARK build failed
FAILED_ARK_BUILD=0
# Move the folder "songs_ps3" into "_ark" and rename it to "songs"
echo "Temporarily moving PS3 songs folder into ark"
mv "$PWD/_songs/songs_new" "$PWD/_ark/songs"
# Temporarily move Xbox and Wii files out of the ARK path to reduce final ARK size
#echo
#echo "Temporarily moving Xbox and Wii files out of the ark path to reduce final ARK size"
#find "$PWD/_ark" \( -name "*.milo_xbox" -o -name "*.png_xbox" -o -name "*.bmp_xbox" -o -name "*.milo_wii" -o -name "*.png_wii" -o -name "*.bmp_wii" \) -exec mv -t "$PWD/_temp/_ark" {} +
# Building PS3 ARK
echo
echo "Building PS3 ARK"
"$PWD/dependencies/arkhelper" dir2ark "$PWD/_ark" "$PWD/_build/ps3/USRDIR/gen" -n "patch_ps3" -e -v 6 -s 4073741823 >/dev/null 2>&1
if [ $? -ne 0 ]; then
FAILED_ARK_BUILD=1
fi
# Moving back Xbox files
#echo
#echo "Moving back Xbox files"
#find "$PWD/_temp/_ark" \( -name "*.milo_xbox" -o -name "*.png_xbox" -o -name "*.bmp_xbox" -o -name "*.milo_wii" -o -name "*.png_wii" -o -name "*.bmp_wii" \) -exec mv -t "$PWD/_ark" {} +
# Move the folder "songs" back to the original directory and rename it to "songs_new"
echo "Moving back PS3 song folder"
mv "$PWD/_ark/songs" "$PWD/_songs/songs_new"
# Clean up temporary directory
rm -rf "$PWD/_temp"
# Check if the ARK build failed and provide appropriate message
echo
if [ "$FAILED_ARK_BUILD" -ne 1 ]; then
echo "Successfully built Rock Band 3 Deluxe (lite) ARK files. You may find the files needed to place on your PS3 in /_build/PS3/"
else
echo "Error building ARK. Download the repo again or some dta file is bad p.s turn echo on to see what arkhelper says"
fi
echo
read -p "Press Enter to continue..."