added option to install latest cemu: -l
This commit is contained in:
parent
fef062931c
commit
d7e47b6964
22
cemutil.sh
22
cemutil.sh
@ -14,6 +14,8 @@ function printhelp {
|
||||
echo "usage examples:"
|
||||
echo "Download latest working cemu + cemuhook + graphic packs and install to ~/.cemu (default):"
|
||||
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 "./cemutil.sh -c cemu.zip -h cemuhook.zip -g graphicpacks.zip -i ~/Documents/cemu"
|
||||
exit 1
|
||||
@ -21,8 +23,19 @@ function printhelp {
|
||||
|
||||
function downloadlatest {
|
||||
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 http://cemu.info/releases/cemu_1.15.4.zip
|
||||
wget -q --show-progress -O cemutemp.zip $(curl -s http://cemu.info |grep .zip |awk -F '"' {'print $2'})
|
||||
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"
|
||||
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"
|
||||
@ -69,7 +82,7 @@ then
|
||||
fi
|
||||
|
||||
#Handle args
|
||||
while getopts ":c:h:g:afi:" opt; do
|
||||
while getopts ":c:h:g:alfi:" opt; do
|
||||
case ${opt} in
|
||||
c )
|
||||
cemuzip=$OPTARG
|
||||
@ -93,6 +106,9 @@ while getopts ":c:h:g:afi:" opt; do
|
||||
fi
|
||||
;;
|
||||
a )
|
||||
downloadlatest_working
|
||||
;;
|
||||
l )
|
||||
downloadlatest
|
||||
;;
|
||||
f )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user