@@ -51,20 +51,20 @@ cd "${DIR}" || exit 1
5151PLUGIN_URL=" https://stable.dl.unraid.net/unraid-api/\&name;.plg"
5252MAIN_TXZ=" https://stable.dl.unraid.net/unraid-api/${plugin} -${version} .txz"
5353API_TGZ=" https://stable.dl.unraid.net/unraid-api/unraid-api-${API_VERSION} .tgz"
54- NODE_TGZ =" https://stable.dl.unraid.net/unraid-api/${NODEJS_FILENAME} "
54+ NODE_TXZ =" https://stable.dl.unraid.net/unraid-api/${NODEJS_FILENAME} "
5555NGHTTP3_TGZ=" https://stable.dl.unraid.net/unraid-api/${NGHTTP3_FILENAME} "
5656# Check if PR is set, use a different path if so
5757if [[ -n " ${PR} " ]]; then
5858 MAIN_TXZ=" https://preview.dl.unraid.net/unraid-api/pr/${PR} /${plugin} -${version} .txz"
5959 API_TGZ=" https://preview.dl.unraid.net/unraid-api/pr/${PR} /unraid-api-${API_VERSION} .tgz"
6060 PLUGIN_URL=" https://preview.dl.unraid.net/unraid-api/pr/${PR} /${plugin} .plg"
61- NODE_TGZ =" https://preview.dl.unraid.net/unraid-api/pr/${PR} /${NODEJS_FILENAME} "
61+ NODE_TXZ =" https://preview.dl.unraid.net/unraid-api/pr/${PR} /${NODEJS_FILENAME} "
6262 NGHTTP3_TGZ=" https://preview.dl.unraid.net/unraid-api/pr/${PR} /${NGHTTP3_FILENAME} "
6363elif [[ " ${env} " == " staging" ]]; then
6464 PLUGIN_URL=" https://preview.dl.unraid.net/unraid-api/\&name;.plg"
6565 MAIN_TXZ=" https://preview.dl.unraid.net/unraid-api/${plugin} -${version} .txz"
6666 API_TGZ=" https://preview.dl.unraid.net/unraid-api/unraid-api-${API_VERSION} .tgz"
67- NODE_TGZ =" https://preview.dl.unraid.net/unraid-api/${NODEJS_FILENAME} "
67+ NODE_TXZ =" https://preview.dl.unraid.net/unraid-api/${NODEJS_FILENAME} "
6868 NGHTTP3_TGZ=" https://preview.dl.unraid.net/unraid-api/${NGHTTP3_FILENAME} "
6969fi
7070
@@ -80,12 +80,12 @@ sed -i -E "s#(ENTITY MAIN_TXZ\s*)\".*\"#\1\"${MAIN_TXZ}\"#g" "${plgfile}"
8080sed -i -E " s#(ENTITY API_TGZ\s*)\" .*\" #\1\" ${API_TGZ} \" #g" " ${plgfile} "
8181
8282# update node versions
83- sed -i -E " s#(ENTITY NODE \s*)\" .*\" #\1\" ${NODEJS_FILENAME} \" #g" " ${plgfile} "
84- sed -i -E " s#(ENTITY NODE_SHA256 \s*)\" .*\" #\1\" ${NODEJS_SHA256} \" #g" " ${plgfile} "
85- sed -i -E " s#(ENTITY NODE_TXZ\s*)\" .*\" #\1\" ${NODE_TGZ } \" #g" " ${plgfile} "
83+ sed -i -E " s#(ENTITY NODEJS_FILENAME \s*)\" .*\" #\1\" ${NODEJS_FILENAME} \" #g" " ${plgfile} "
84+ sed -i -E " s#(ENTITY NODEJS_SHA256 \s*)\" .*\" #\1\" ${NODEJS_SHA256} \" #g" " ${plgfile} "
85+ sed -i -E " s#(ENTITY NODE_TXZ\s*)\" .*\" #\1\" ${NODE_TXZ } \" #g" " ${plgfile} "
8686
8787# update nghttp3 versions
88- sed -i -E " s#(ENTITY NGHTTP3 \s*)\" .*\" #\1\" ${NGHTTP3_FILENAME} \" #g" " ${plgfile} "
88+ sed -i -E " s#(ENTITY NGHTTP3_FILENAME \s*)\" .*\" #\1\" ${NGHTTP3_FILENAME} \" #g" " ${plgfile} "
8989sed -i -E " s#(ENTITY NGHTTP3_SHA256\s*)\" .*\" #\1\" ${NGHTTP3_SHA256} \" #g" " ${plgfile} "
9090sed -i -E " s#(ENTITY NGHTTP3_TXZ\s*)\" .*\" #\1\" ${NGHTTP3_TGZ} \" #g" " ${plgfile} "
9191
0 commit comments