Skip to content

Commit

Permalink
remove gzip images
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Jan 28, 2024
1 parent 21eed70 commit f8914f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions internal/ota_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion internal/package_ota.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f8914f4

Please sign in to comment.