-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_release.sh
64 lines (52 loc) · 1.35 KB
/
build_release.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
59
60
61
62
63
64
#!/bin/sh
# builds a preset
build_preset() {
echo Configuring $1 ...
cmake --preset $1
echo Building $1 ...
cmake --build --preset $1
}
build_preset core
build_preset nds
build_preset 3ds
build_preset wii
build_preset switch
rm -rf out
# --- NDS --- #
mkdir -p out/nds/config/ftpsrv
cp assets/config.ini.template out/nds/config/ftpsrv/
mkdir -p out/nds
cp build/nds/*.nds out/nds/ftpsrv.nds
cd out/nds
zip -r9 ../nds.zip ftpsrv.nds config
cd ../..
# --- 3DS --- #
mkdir -p out/3ds/config/ftpsrv
cp assets/config.ini.template out/3ds/config/ftpsrv/
mkdir -p out/3ds
cp build/3ds/*.3dsx out/3ds/ftpsrv.3dsx
cd out/3ds
zip -r9 ../3ds.zip ftpsrv.3dsx config
cd ../..
# --- WII --- #
mkdir -p out/wii/config/ftpsrv
cp assets/config.ini.template out/wii/config/ftpsrv/
mkdir -p out/wii
cp -r build/wii/apps out/wii/
cd out/wii
zip -r9 ../wii.zip apps config
cd ../..
# --- SWITCH --- #
mkdir -p out/switch/config/ftpsrv
cp assets/config.ini.template out/switch/config/ftpsrv/
mkdir -p out/switch/switch
cp assets/config.ini.template out/switch/config/ftpsrv/
cp -r build/switch/*.nro out/switch/switch/ftpsrv.nro
cd out/switch
zip -r9 ../switch_application.zip switch config
cd ../..
mkdir -p out/switch/atmosphere/contents/
cp -r build/switch/420000000000011B out/switch/atmosphere/contents/
cd out/switch
zip -r9 ../switch_sysmod.zip atmosphere config
cd ../..