remove gzip images (#204)

This commit is contained in:
Adeeb Shihadeh
2024-01-27 17:26:04 -08:00
committed by GitHub
parent 21eed70633
commit 51899b5e18
2 changed files with 0 additions and 3 deletions
-2
View File
@@ -39,13 +39,11 @@ process_file() {
local NAME=$1
local HASH_RAW=$(cat $OTA_JSON | jq -r ".[] | select(.name == \"$NAME\") | .hash_raw")
upload_file "$NAME-$HASH_RAW.img.xz"
upload_file "$NAME-$HASH_RAW.img.gz"
local ALT_URL=$(cat $OTA_JSON | jq -r ".[] | select(.name == \"$NAME\") | .alt.url")
if [ "$ALT_URL" != "null" ]; then
local ALT_FILE_NAME=$(basename $ALT_URL)
upload_file $ALT_FILE_NAME
upload_file ${ALT_FILE_NAME%.xz}.gz
fi
# if [ "$NAME" == "system" ]; then
-1
View File
@@ -21,7 +21,6 @@ def checksum(fn):
def compress(fin, fout) -> None:
subprocess.check_call(f"xz -T4 -vc {fin} > {fout}", shell=True)
subprocess.check_call(f"gzip -vc {fin} > {fout.with_suffix('.gz')}", shell=True)
def process_file(fn, name, sparse=False, full_check=True, has_ab=True, alt=None):