diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 1d18ac1..08528b8 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -33,7 +33,7 @@ jobs: sudo timedatectl set-timezone "Europe/Berlin" sudo apt update - sudo apt install -y jq libelf-dev qemu-utils + sudo apt install -y jq gawk cpio gettext libelf-dev qemu-utils busybox dialog curl sed zip unzip sudo snap install yq - name: Clean Files diff --git a/update.sh b/update.sh index b696678..4cb89fe 100755 --- a/update.sh +++ b/update.sh @@ -118,8 +118,10 @@ HOME=$(pwd) CONFIGS="./configs" rm -f "${CONFIGS}" mkdir -p "${CONFIGS}" -git clone https://github.com/AuxXxilium/arc-configs -b dev "${CONFIGS}" -while read MODEL; do +TAG="$(curl --insecure -m 5 -s https://api.github.com/repos/AuxXxilium/arc-configs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')" +curl --insecure -s -w "%{http_code}" -L "https://github.com/AuxXxilium/arc-configs/releases/download/${TAG}/configs.zip" -o "./configs.zip" +unzip -oq "./configs.zip" -d "${CONFIGS}" >/dev/null 2>&1 +while read -r MODEL; do MODEL="$(basename ${MODEL})" MODEL="${MODEL::-4}" CACHE_PATH="${HOME}/cache"