build: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-28 23:02:48 +02:00
parent d0cbc386af
commit 7ca13eaf89
3 changed files with 6 additions and 4 deletions

View File

@ -33,7 +33,8 @@ jobs:
sudo timedatectl set-timezone "Europe/Berlin"
sudo apt update
sudo apt install -y jq gawk cpio gettext libelf-dev qemu-utils busybox dialog curl sed
sudo apt install -y jq gawk cpio gettext libelf-dev qemu-utils busybox dialog curl sed
sudo pip install bs4
sudo snap install yq
df -h

View File

@ -66,7 +66,8 @@ jobs:
sudo timedatectl set-timezone "Europe/Berlin"
sudo apt update
sudo apt install -y jq gawk cpio gettext libelf-dev qemu-utils busybox dialog curl sed
sudo apt install -y jq gawk cpio gettext libelf-dev qemu-utils busybox dialog curl sed
sudo pip install bs4
sudo snap install yq
df -h

View File

@ -655,7 +655,7 @@ function make() {
if [ "${OFFLINE}" == "false" ]; then
while true; do
PJ="$(python ${ARC_PATH}/include/functions.py getpats4mv -m "${MODEL}" -v "${PRODUCTVER}")"
if [ -z "${PJ}" || "${PJ}" = "{}" ]; then
if [ -z "${PJ}" ] || [ "${PJ}" = "{}" ]; then
MSG="Unable to connect to Synology API, Please check the network and try again!"
dialog --backtitle "$(backtitle)" --colors --title "Arc Build" \
--yes-label "Retry" \
@ -671,7 +671,7 @@ function make() {
[ ${RET} -ne 0 ] && return
PV=$(cat ${TMP_PATH}/resp)
PAT_URL=$(echo "${PJ}" | jq -r ".\"${PV}\".url")
PAT_SUM=$(echo "${PJ}" | jq -r ".\"${PV}\".sum")
PAT_HASH=$(echo "${PJ}" | jq -r ".\"${PV}\".sum")
URLVER="$(echo "${PV}" | cut -d'.' -f1,2)"
[ "${PRODUCTVER}" != "${URLVER}" ] && PRODUCTVER="${URLVER}"
writeConfigKey "productver" "${PRODUCTVER}" "${USER_CONFIG_FILE}"