-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile
47 lines (39 loc) · 1.51 KB
/
compile
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
#!/usr/bin/env -S bash -Eeuxo pipefail
# compile - Autobuild Bash script for UNIX.
# Copyright (C) 2023 Makonede
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
TID=01007EF00011E000
RELEASE_PATH=release/atmosphere/contents/$TID
python3 -m pip install -U pip
python3 -m pip install -U setuptools
python3 -m pip install -U wheel
python3 -m pip install -Ur tools/botw-link/requirements.txt
python3 -m pip install -U vidua
[[ -d build ]] && rm -rf build/* || mkdir build
python3 tools/botw-link config/botw-link.toml -cvV 160
rm -rf patched/ release/
mkdir -p $RELEASE_PATH/exefs
cp -Rf build/LinkCannon.nso $RELEASE_PATH/exefs/subsdk9
cp -Rf build/app.npdm $RELEASE_PATH/exefs/main.npdm
cp -Rf romfs/ $RELEASE_PATH/
chmod +x patch.py
./patch.py
cp -Rf patched/* $RELEASE_PATH/romfs
set +x
cat <<EOF
Build complete. To install, copy the contents of the release folder onto the
root of your microSD card.
EOF
read -n1 -r -p "Press any key to continue..."