Skip to content

Instantly share code, notes, and snippets.

@MrYakobo
Last active August 30, 2018 15:24
Show Gist options
  • Save MrYakobo/6d5f0e280a46147ae1a3d165b0f4965e to your computer and use it in GitHub Desktop.
Save MrYakobo/6d5f0e280a46147ae1a3d165b0f4965e to your computer and use it in GitHub Desktop.
Automated download and extract process from https://wiiu.hacks.guide/get-started
#!/usr/bin/env bash
echo "This script follows the guide from https://wiiu.hacks.guide/get-started as of 2018-08-30."
mkdir -p SDCARD
cd SDCARD
declare -a files=(
https://wiiu.hacks.guide/assets/files/config.txt \
https://wiiu.hacks.guide/assets/files/config.ini \
https://github.com/vgmoose/hbas/releases/download/1.5/appstore15.zip \
http://wiiubru.com/appstore/zips/wup_installer_gx2.zip \
https://github.com/koolkdev/disc2app/releases/download/v1.0/disc2app.zip \
https://github.com/Maschell/hid_to_vpad/releases/download/v0.9k/HIDtoVPAD.v0.9k.zip \
https://www.wiiubru.com/appstore/zips/mocha.zip \
https://github.com/GabyPCgeeK/savemii/releases/download/1.2.0.mod5/savemii_mod5.zip \
https://github.com/dimok789/homebrew_launcher/releases/download/v2.1/homebrew_launcher_channel.v2.1.zip \
https://github.com/dimok789/homebrew_launcher/releases/download/v1.3/homebrew_launcher.v1.3.zip \
https://github.com/koolkdev/wiiu-nanddumper/releases/download/v0.3/nanddumper.zip \
https://github.com/FIX94/haxchi/releases/download/v2.5u2_v1.6/Haxchi_v2.5u2.zip \
https://github.com/FIX94/haxchi/releases/download/v2.5u2_v1.6/CBHC_v1.6.zip \
https://wiiubru.com/appstore/zips/nnupatcher.zip
)
download(){
echo "Downloading all files, please wait..."
for i in "${files[@]}"; do
if ! [ -f $(basename "$i") ]; then # if not already downloaded
curl -LO "$i"
fi
done
echo "Download complete!"
#curl -LOOOOOOOOOOOOOO -C - \
}
extract(){ # extraction done in order to the guide, don't know if this is neccessary. Overwrites old files
mkdir -p wiiu install
unzip -o appstore15.zip -d wiiu
unzip -o homebrew_launcher.v1.3.zip
unzip -o Haxchi_v2.5u2.zip
unzip -o CBHC_v1.6.zip
mv config.txt haxchi/
mkdir -p install/hbc
unzip -o homebrew_launcher_channel.v2.1.zip -d install/hbc
unzip -o savemii_mod5.zip -d wiiu/apps
unzip -o wup_installer_gx2.zip
unzip -o disc2app.zip
unzip -o HIDtoVPAD.v0.9k.zip
unzip -o nnupatcher.zip
unzip -o nanddumper.zip
unzip -o mocha.zip
mv config.ini wiiu/apps/mocha
}
download
echo "Now extracting..."
extract &> /dev/null
echo "Configuration complete, copy the files in SDCARD/ to the root of your SD card."
rm *.zip
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment