mirror of
https://github.com/AuxXxilium/arc-dsm.git
synced 2024-11-23 23:30:51 +07:00
build: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
9173124003
commit
9532d9177b
2
.github/workflows/update.yml
vendored
2
.github/workflows/update.yml
vendored
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user