This commit is contained in:
Fabio Belavenuto 2022-10-26 13:51:55 -03:00
parent 955b074cc6
commit 05a9dd7fb0
2 changed files with 4 additions and 4 deletions

View File

@ -99,7 +99,7 @@ jobs:
yq '.replace | explode(.) | to_entries | map([.key])[] | .[]' update-list.yml | while read F; do yq '.replace | explode(.) | to_entries | map([.key])[] | .[]' update-list.yml | while read F; do
(cd `dirname ${F}` && sha256sum `basename ${F}`) >> sha256sum (cd `dirname ${F}` && sha256sum `basename ${F}`) >> sha256sum
done done
yq '.replace | explode(.) | to_entries | map([.key])[] | .[]' update-list.yml | xargs zip -9j "update-${{ steps.build.outputs.VERSION }}.zip" sha256sum update-list.yml yq '.replace | explode(.) | to_entries | map([.key])[] | .[]' update-list.yml | xargs zip -9j "update.zip" sha256sum update-list.yml
# Upload artifact # Upload artifact
- name: Upload - name: Upload
@ -109,7 +109,6 @@ jobs:
path: | path: |
arpl.img arpl.img
arpl*.vmdk arpl*.vmdk
update-${{ steps.build.outputs.VERSION }}.zip
retention-days: 5 retention-days: 5
# Publish a release if is a tag # Publish a release if is a tag
@ -121,4 +120,4 @@ jobs:
arpl-${{ steps.build.outputs.VERSION }}.img.zip arpl-${{ steps.build.outputs.VERSION }}.img.zip
arpl-${{ steps.build.outputs.VERSION }}.vmdk-dyn.zip arpl-${{ steps.build.outputs.VERSION }}.vmdk-dyn.zip
arpl-${{ steps.build.outputs.VERSION }}.vmdk-flat.zip arpl-${{ steps.build.outputs.VERSION }}.vmdk-flat.zip
update-${{ steps.build.outputs.VERSION }}.zip update.zip

View File

@ -890,7 +890,8 @@ function updateMenu() {
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \ dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
--infobox "Downloading last version ${TAG}" 0 0 --infobox "Downloading last version ${TAG}" 0 0
# Download update file # Download update file
STATUS=`curl --insecure -s -w "%{http_code}" -L "https://github.com/fbelavenuto/arpl/releases/download/${TAG}/update-${TAG}.zip" -o /tmp/update.zip` STATUS=`curl --insecure -s -w "%{http_code}" -L \
"https://github.com/fbelavenuto/arpl/releases/download/${TAG}/update.zip" -o /tmp/update.zip`
if [ $? -ne 0 -o ${STATUS} -ne 200 ]; then if [ $? -ne 0 -o ${STATUS} -ne 200 ]; then
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \ dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
--msgbox "Error downloading update file" 0 0 --msgbox "Error downloading update file" 0 0