-
Notifications
You must be signed in to change notification settings - Fork 7
/
full_export.sh
executable file
·48 lines (42 loc) · 1.35 KB
/
full_export.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
#!/bin/sh
if ! command -v python 2>&1 >/dev/null
then
echo "*** python required"
exit 1
fi
if ! python xna_native.py 2>/dev/null
then
if ! command -v mono 2>&1 >/dev/null
then
echo "*** mono required"
exit 1
fi
fi
if [ -e "Content/Essentials.pak" -a -e "Content/Other.pak" ]
then
if python xna_native.py 2>/dev/null
then
echo "Decompressing Essentials.pak, Other.pak and Updates.pak..."
python fez_decomp.py Content out || exit 1
else
echo "Unpacking Essentials.pak, Other.pak and Updates.pak..."
python fez_unpack.py Content out_c || exit 1
echo "Decompressing XNBs..."
mono bin/xnbdecomp.exe out_c out || exit 1
fi
echo "Converting XNBs..."
python read_xnb_dir.py out export || exit 1
else
echo "*** Essentials.pak, Other.pak and Updates.pak not found in Content"
fi
if [ -e "Content/Music.pak" ]
then
echo "Extracting Music.pak..."
python fez_music_unpack.py Content export/music || exit 1
elif [ -e "Content/Music/XACT Music.xgs" -a -e "Content/Music/Sound Bank.xsb" -a -e "Content/Music/Wave Bank.xwb" ]
then
echo "Converting XACT Music..."
python read_xact.py "Content/Music/XACT Music.xgs" "Content/Music/Sound Bank.xsb" "Content/Music/Wave Bank.xwb" export/music || exit 1
else
echo "*** Music.pak or Music folder not found in Content"
fi