From f03119fd4350baa8992035de1657bf0e14c5c890 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 3 Apr 2021 14:07:14 +0200 Subject: [PATCH] :art: Update build --- scripts/update.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.43.0