From: Jérémie Astor Date: Sat, 3 Apr 2021 12:07:14 +0000 (+0200) Subject: :art: Update build X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f03119fd4350baa8992035de1657bf0e14c5c890;p=gwion.git :art: Update build --- diff --git a/scripts/update.sh b/scripts/update.sh index 1af947be..cd228e7d 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -2,23 +2,23 @@ get_latest_release() { curl --silent "https://api.github.com/repos/$1/$2/releases/latest" | # Get latest release from GitHub api - grep '"tag_name":' | # Get tag line + grep '"browser_download_url"' | grep 'nightly-ubuntu' | sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value } update() { new_release=$(get_latest_release $1 $2) url=https://github.com/$1/$2/releases/download - file=${3}linux.tar.gz + file=${2}*.tar.gz wget "$url/$new_release/$file" tar -zxvf $file rm $file } -git clone --recursive https://github.com/Gwion/Gwion -make -C Gwion -cp Gwion/gwion . +#git clone --recursive https://github.com/Gwion/Gwion +#make -C Gwion +#cp Gwion/gwion . -#!update Gwion Gwion gwion- +update Gwion gwion update fennecdjay mdr update fennecdjay cmojify