Update build.sh

This commit is contained in:
Aditya Garg 2024-06-20 15:44:05 +05:30 committed by GitHub
parent e5cb08671f
commit ea99f9bed8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -83,14 +83,14 @@ do
echo "Error building ${KERNEL_VERSION}-${ALTERNATIVE}"
exit "${livecd_exitcode}"
fi
## Zip iso and split it into multiple parts - github max size of release attachment is 2GB, where ISO is sometimes bigger than that
## Split iso into multiple parts - github max size of release attachment is 2GB, where ISO is sometimes bigger than that
cd "${ROOT_PATH}"
zip -s 1500m "${ROOT_PATH}/output/kubuntu-22.04-${KERNEL_VERSION}-${ALTERNATIVE}.zip" "${ROOT_PATH}/kubuntu-22.04-${KERNEL_VERSION}-${ALTERNATIVE}.iso"
split -b 1500M -x "${ROOT_PATH}/kubuntu-22.04-${KERNEL_VERSION}-${ALTERNATIVE}.iso" "${ROOT_PATH}/output/kubuntu-22.04-${KERNEL_VERSION}-${ALTERNATIVE}.iso."
done
## Calculate sha256 sums of built ISO
sha256sum "${ROOT_PATH}"/*.iso >"${ROOT_PATH}/output/sha256-kubuntu-22.04"
find ./ | grep ".iso"
find ./ | grep ".zip"
#find ./ | grep ".zip"
exit "${livecd_exitcode}"