forked from andOlga/umineko-catbox-english
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
36 lines (32 loc) · 1.01 KB
/
build.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
#!/bin/bash
# Build requirements: Python 3 with Numpy, Ruby, zip
set -e
echo "=== Building romfs... ==="
cd repack/rom-repack
ruby kal_real.rb ../../script.rb ../../romfs ../../patch.rom ../../patch.snr 6 19 88
cd ../..
echo "=== Building exefs... ==="
python3 build_exefs_text.py
echo "=== Generating mod directory structure... ==="
MODBASE=mods/contents/01006a300ba2c000/
mkdir -p $MODBASE/romfs/
mv patch.rom $MODBASE/romfs/patch.rom
cp -r exefs $MODBASE/exefs
mkdir -p mods/exefs_patches/umineko/
mv 7616F8963DACCD70E20FF3904E13367F96F2D9B3000000000000000000000000.ips mods/exefs_patches/umineko/
rm patch.snr
echo "=== Deploying... ==="
if [ -e "$UMINEKO_TARGET" ]
then # Local/dev build
cp -rf mods "$UMINEKO_TARGET"
rm -rf mods
else # Public/Github build
cd mods
zip -r ../patch_atmos.zip .
cd ..
mkdir UminekoCatboxEnglish
cp -r $MODBASE/* UminekoCatboxEnglish/
cp mods/exefs_patches/umineko/*.ips UminekoCatboxEnglish/exefs/
zip -r patch_yuzu.zip UminekoCatboxEnglish
cd ..
fi