Add Inkay patches compilation script

This commit is contained in:
Matthew Lopez 2023-12-18 20:52:18 -05:00
parent 1d6f6a9f59
commit 89489f2462
No known key found for this signature in database
GPG Key ID: 302A6EE3D63B7E0E

20
scripts/compile-custom-inkay.sh Executable file
View File

@ -0,0 +1,20 @@
#! /bin/sh
set -eu
git_base=$(git rev-parse --show-toplevel)
. "$git_base/environment/wiiu.local.env"
cd "$git_base/repos/Inkay"
# Get the current certificate (requires mitmproxy-pretendo to have been run at
# least once)
mitmproxy_cert=$(docker run -it --rm -v pretendo-network_mitmproxy-pretendo-data:/mnt busybox cat /mnt/mitmproxy-ca-cert.pem)
echo "$mitmproxy_cert" | tee ./data/ca.pem
# Set up the Inkay build environment and then build the patches
docker build . -t inkay-build
docker run -it --rm -v .:/app -w /app inkay-build
# Finally, upload the new Inkay patches to the Wii U
ftp -u ftp://user:pass@"$WIIU_IP"/fs/vol/external01/wiiu/environments/aroma/plugins/Inkay-pretendo.wps ./Inkay-pretendo.wps
echo "Reboot your Wii U now to apply the new patches."