mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Testing new update method
This commit is contained in:
parent
04455518e2
commit
1a1afd86dc
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -97,7 +97,7 @@ jobs:
|
|||||||
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.vmdk-flat.zip" arpl.vmdk arpl-flat.vmdk
|
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.vmdk-flat.zip" arpl.vmdk arpl-flat.vmdk
|
||||||
sha256sum update-list.yml > sha256sum
|
sha256sum update-list.yml > sha256sum
|
||||||
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-${{ steps.build.outputs.VERSION }}.zip" sha256sum update-list.yml
|
||||||
|
|
||||||
|
@ -915,6 +915,10 @@ function updateMenu() {
|
|||||||
while IFS="=" read KEY VALUE; do
|
while IFS="=" read KEY VALUE; do
|
||||||
mv /tmp/`basename "${KEY}"` "${VALUE}"
|
mv /tmp/`basename "${KEY}"` "${VALUE}"
|
||||||
done < <(readConfigMap "replace" "/tmp/update-list.yml")
|
done < <(readConfigMap "replace" "/tmp/update-list.yml")
|
||||||
|
while read F; do
|
||||||
|
[ -f "${F}" ] && rm -f "${F}"
|
||||||
|
[ -d "${F}" ] && rm -Rf "${F}"
|
||||||
|
done < <(readConfigArray "remove" "/tmp/update-list.yml")
|
||||||
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
||||||
--yesno "Arpl updated with success to ${TAG}!\nReboot?" 0 0
|
--yesno "Arpl updated with success to ${TAG}!\nReboot?" 0 0
|
||||||
[ $? -ne 0 ] && continue
|
[ $? -ne 0 ] && continue
|
||||||
|
@ -89,7 +89,7 @@ zip -9 "arpl-${VERSION}.vmdk-dyn.zip" arpl-dyn.vmdk
|
|||||||
zip -9 "arpl-${VERSION}.vmdk-flat.zip" arpl.vmdk arpl-flat.vmdk
|
zip -9 "arpl-${VERSION}.vmdk-flat.zip" arpl.vmdk arpl-flat.vmdk
|
||||||
sha256sum update-list.yml > sha256sum
|
sha256sum update-list.yml > sha256sum
|
||||||
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 -9D "update-${VERSION}.zip" sha256sum update-list.yml
|
yq '.replace | explode(.) | to_entries | map([.key])[] | .[]' update-list.yml | xargs zip -9j "update-${VERSION}.zip" sha256sum update-list.yml
|
||||||
rm -f sha256sum
|
rm -f sha256sum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user