mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-09-30 11:23:52 +08:00
remove gzip images (#204)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user