File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -364,15 +364,15 @@ function platform_image() {
364
364
[[ " $make_bb " -eq 1 ]] && rp_callModule image create_bb " $dest /${image_base} -berryboot.img256"
365
365
366
366
printMsgs " console" " Compressing ${image_name} ..."
367
- gzip -c " $image_file " > " ${image_file} .gz "
367
+ xz -v --compress --stdout " $image_file " > " ${image_file} .xz "
368
368
369
369
printMsgs " console" " Generating JSON data for rpi-imager ..."
370
370
local template
371
371
template=" $( < " $md_data /template.json" ) "
372
- template=" ${template/ IMG_PATH/ $__version \/ ${image_name} .gz } "
372
+ template=" ${template/ IMG_PATH/ $__version \/ ${image_name} .xz } "
373
373
template=" ${template/ IMG_EXTRACT_SIZE/ $(stat -c % s $image_file )} "
374
374
template=" ${template/ IMG_SHA256/ $(sha256sum $image_file | cut -d" " -f1)} "
375
- template=" ${template/ IMG_DOWNLOAD_SIZE/ $(stat -c % s ${image_file} .gz )} "
375
+ template=" ${template/ IMG_DOWNLOAD_SIZE/ $(stat -c % s ${image_file} .xz )} "
376
376
template=" ${template/ IMG_VERSION/ $__version } "
377
377
template=" ${template/ IMG_PLATFORM/ $image_title } "
378
378
template=" ${template/ IMG_DATE/ $(date ' +%Y-%m-%d' )} "
You can’t perform that action at this time.
0 commit comments