Add installdeps.sh and extractscrips.sh
Write scripts to compile tooling and extract game files python scripts from a SpongeBob SquarePants: Revenge of the Flying Dutchman (GCN) game disc
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
#!/bin/env bash
|
||||
|
||||
if (command -v git >/dev/null); then echo -n ""; else
|
||||
echo "Git is not installed. Please use your system"
|
||||
echo " package manager to install git."
|
||||
echo " e.g. \`sudo apt install git\` on ubuntu"
|
||||
echo " or \`sudo pacman -S git\` on arch."
|
||||
exit 1
|
||||
fi
|
||||
if (command -v cargo >/dev/null); then echo -n ""; else
|
||||
echo "Cargo is not installed. Please use your system"
|
||||
echo " package manager to install cargo."
|
||||
echo " e.g. \`sudo apt install cargo\` on ubuntu"
|
||||
echo " or \`sudo pacman -S cargo\` on arch."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir deps
|
||||
cd deps
|
||||
echo "preparing to compile chumcli (extracts files from NGC/DGC and NPC/DPC archives)..."
|
||||
git clone -n https://github.com/Jellonator/chum-world.git
|
||||
cd chum-world
|
||||
git checkout -q afdb15845eec18ee964b1ebea7019ff45a0dce66 #last commit before a breaking change was made to chumlib
|
||||
cd chumcli
|
||||
cargo build
|
||||
cp target/debug/chumcli ../../
|
||||
cd ../../
|
||||
rm -rf chum-world
|
||||
echo "compiling chumcli complete."
|
||||
echo "preparing to compile gc-gcm (extracts files from gcm disc image (gamecube disc))"
|
||||
PATH=./bin:$PATH CARGO_INSTALL_ROOT=./ cargo install gc-gcm --features=bin
|
||||
mv ./bin/gcm .
|
||||
rmdir bin
|
||||
rm .crates.toml .crates2.json
|
||||
echo "compiling gc-gcm complete."
|
||||
|
||||
if (command -v pycdc >/dev/null) then echo -n ""; else
|
||||
echo "pycdc is not installed. Please use your system"
|
||||
echo " package manager to install pycdc."
|
||||
echo " e.g. \`snap install pycdc\` on ubuntu"
|
||||
echo " or install it from the aur on arch:"
|
||||
echo " \`git clone https://aur.archlinux.org/pycdc-git.git\`"
|
||||
echo " \`cd pycdc \`"
|
||||
echo " \`makepkg -sic \`"
|
||||
fi
|
||||
|
||||
echo "downloading python 2.1 from https://www.python.org/ftp/python/2.1.3/Python-2.1.3.exe"
|
||||
curl -o "./python-2.1.exe" "https://www.python.org/ftp/python/2.1.3/Python-2.1.3.exe"
|
||||
echo "download complete."
|
||||
|
||||
if (command -v wine >/dev/null) then echo -n ""; else
|
||||
echo "Wine is not installed. Please use your system"
|
||||
echo " package manager to install wine."
|
||||
echo " e.g. \`sudo apt install wine\` on ubuntu"
|
||||
echo " or \`sudo pacman -S wine\` on arch."
|
||||
fi
|
||||
Reference in New Issue
Block a user