-
Notifications
You must be signed in to change notification settings - Fork 6
/
build-all.sh
executable file
·36 lines (31 loc) · 1.13 KB
/
build-all.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
# Clean
make -C Act-Nut-lib clean
make -C th135arc-alt clean
rm -rf 135tk
rm -rf 135tk.zip
# Build
make -C Act-Nut-lib
make -C th135arc-alt
for dir in bmpfont nhtextool read_pat TFBMTool-alt th145arc th175arc; do
echo "Building $dir..."
cd $dir
./build.sh
cd ..
done
# Copy binaries
mkdir -p 135tk
cp Act-Nut-lib/libactnut.dll Act-Nut-lib/act-nut-tool.exe Act-Nut-lib/libactnut64.dll Act-Nut-lib/act-nut-tool-64.exe 135tk
cp bmpfont/bmpfont_extract.exe bmpfont/bmpfont_convert.exe bmpfont/bmpfont_create.exe bmpfont/bmpfont_create_gdi.dll bmpfont/bmpfont_create_gdiplus.dll 135tk
cp nhtextool/nhtextool.exe 135tk
cp orig_135tk/* 135tk
cp read_pat/read_pat.exe 135tk
cp TFBMTool-alt/TFBMTool-alt.exe TFBMTool-alt/extractBM-alt.exe 135tk
cp th135arc-alt/th135arc-alt.exe 135tk
cp th145arc/th145arc.exe th145arc/fileslist.txt 135tk
cp th175arc/th175arc.exe th175arc/fileslist.js 135tk
# Copy dependencies
DEP_DIR=/mingw32/bin
cp $DEP_DIR/libgcc_s_dw2-1.dll $DEP_DIR/libjansson-4.dll $DEP_DIR/libpng16-16.dll $DEP_DIR/libstdc++-6.dll $DEP_DIR/libwinpthread-1.dll $DEP_DIR/zlib1.dll 135tk
cp readme.md 135tk
# Create zip
zip -r 135tk.zip 135tk