This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function version { echo "$@" | gawk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }'; } | |
function downloadFile { | |
echo "$1" | egrep -o "/irtimmer/moonlight-embedded/releases/download/v([0-9]\.*)+/$2" | wget -q --base=http://github.com/ -i - -O "$2" | |
} | |
function updateMoonlight { | |
FILE=version | |
releases=`curl -s -L https://github.com/irtimmer/moonlight-embedded/releases/latest` | |
current_version=`cat $FILE` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function downloadFile { | |
releases=`curl -s -L https://github.com/irtimmer/moonlight-embedded/releases/latest` | |
echo "$releases" | egrep -o "/irtimmer/moonlight-embedded/releases/download/v([0-9]\.*)+/$1" | wget --base=http://github.com/ -i - -O "$1" | |
} | |
downloadFile libopus.so | |
downloadFile limelight.jar |
NewerOlder