mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 00:09:53 +07:00
update: rework
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
2049102139
commit
d513e63c59
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -157,9 +157,9 @@ jobs:
|
||||
echo "Create Arc ova"
|
||||
convertova "arc.img" "arc.ova"
|
||||
|
||||
zip -9 update.zip "files/p3/bzImage-arc" "files/p3/initrd-arc" "files/p1/ARC-VERSION" "files/p1/boot/grub/grub.cfg"
|
||||
# Zip update and generate checksum
|
||||
zip -9j update.zip "files/p3/bzImage-arc" "files/p3/initrd-arc" "files/p1/ARC-VERSION" "files/p1/boot/grub/grub.cfg"
|
||||
sha256sum update.zip >checksum.sha256
|
||||
rm -f "files/p3/bzImage-arc" "files/p3/initrd-arc"
|
||||
|
||||
# Zip image and generate checksum
|
||||
- name: Pack
|
||||
|
@ -147,10 +147,10 @@ function updateLoader() {
|
||||
echo "Download successful!"
|
||||
unzip -oq "${TMP_PATH}/update.zip" -d "${TMP_PATH}"
|
||||
echo "Installing new Loader Image..."
|
||||
cp -f "${TMP_PATH}/files/p1/boot/boot/grub.cfg" "${USER_GRUB_CONFIG}"
|
||||
cp -f "${TMP_PATH}/files/p1/ARC-VERSION" "${PART1_PATH}/ARC-VERSION"
|
||||
cp -f "${TMP_PATH}/files/p3/bzImage-arc" "${ARC_BZIMAGE_FILE}"
|
||||
cp -f "${TMP_PATH}/files/p3/initrd-arc" "${ARC_RAMDISK_FILE}"
|
||||
mv -f "${TMP_PATH}/grub.cfg" "${USER_GRUB_CONFIG}"
|
||||
mv -f "${TMP_PATH}/ARC-VERSION" "${PART1_PATH}/ARC-VERSION"
|
||||
mv -f "${TMP_PATH}/bzImage-arc" "${ARC_BZIMAGE_FILE}"
|
||||
mv -f "${TMP_PATH}/initrd-arc" "${ARC_RAMDISK_FILE}"
|
||||
rm -f "${TMP_PATH}/update.zip"
|
||||
else
|
||||
echo "Error getting new Version!"
|
||||
|
Loading…
Reference in New Issue
Block a user