added option to install latest cemu: -l

This commit is contained in:
HengiFettlich 2019-04-26 08:17:31 +02:00
parent fef062931c
commit d7e47b6964

View File

@ -14,6 +14,8 @@ function printhelp {
echo "usage examples:" echo "usage examples:"
echo "Download latest working cemu + cemuhook + graphic packs and install to ~/.cemu (default):" echo "Download latest working cemu + cemuhook + graphic packs and install to ~/.cemu (default):"
echo "./cemutil.sh -a" echo "./cemutil.sh -a"
echo "Download latest cemu + cemuhook + graphic packs and install to ~/.cemu (default):"
echo "./cemutil.sh -l"
echo "Use local zips and install to ~/Documents/cemu:" echo "Use local zips and install to ~/Documents/cemu:"
echo "./cemutil.sh -c cemu.zip -h cemuhook.zip -g graphicpacks.zip -i ~/Documents/cemu" echo "./cemutil.sh -c cemu.zip -h cemuhook.zip -g graphicpacks.zip -i ~/Documents/cemu"
exit 1 exit 1
@ -21,8 +23,19 @@ function printhelp {
function downloadlatest { function downloadlatest {
echo "Downloading latest cemu" echo "Downloading latest cemu"
#wget -q --show-progress -O cemutemp.zip $(curl -s http://cemu.info |grep .zip |awk -F '"' {'print $2'}) wget -q --show-progress -O cemutemp.zip $(curl -s http://cemu.info |grep .zip |awk -F '"' {'print $2'})
wget -q --show-progress -O cemutemp.zip http://cemu.info/releases/cemu_1.15.4.zip downloadassets
return
}
function downloadlatest_working {
echo "Downloading latest working cemu"
wget -q --show-progress -O cemutemp.zip http://cemu.info/releases/cemu_1.15.5.zip
downloadassets
return
}
function downloadassets {
echo "Downloading latest cemuhook" echo "Downloading latest cemuhook"
wget -q --show-progress -O cemuhooktemp.zip $(curl -s https://cemuhook.sshnuke.net |grep .zip |awk -F '"' NR==2{'print $2'}) wget -q --show-progress -O cemuhooktemp.zip $(curl -s https://cemuhook.sshnuke.net |grep .zip |awk -F '"' NR==2{'print $2'})
echo "Downloading latest graphics packs" echo "Downloading latest graphics packs"
@ -69,7 +82,7 @@ then
fi fi
#Handle args #Handle args
while getopts ":c:h:g:afi:" opt; do while getopts ":c:h:g:alfi:" opt; do
case ${opt} in case ${opt} in
c ) c )
cemuzip=$OPTARG cemuzip=$OPTARG
@ -93,6 +106,9 @@ while getopts ":c:h:g:afi:" opt; do
fi fi
;; ;;
a ) a )
downloadlatest_working
;;
l )
downloadlatest downloadlatest
;; ;;
f ) f )