Project

General

Profile

Actions

Issue #2286

closed

Fix Replicant 11 bootanimation

Added by Denis 'GNUtoo' Carikli over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
12/04/2021
Due date:
% Done:

0%

Estimated time:
Resolution:
fixed
Device:
Galaxy S 3 (I9300), Galaxy S 3 4G (I9305)
Grant:
Type of work:
Any programming languages (scripts, C, etc), Build system integration, User testing
Actions #1

Updated by Denis 'GNUtoo' Carikli over 3 years ago

running mat2 on the zip produced by vendor/replicant/artwork also changes the compression level. With:

diff --git a/scripts/bootanimation.sh b/scripts/bootanimation.sh
index 822c688..ef3016d 100755
--- a/scripts/bootanimation.sh
+++ b/scripts/bootanimation.sh
@@ -50,7 +50,7 @@ p 0 0 replicant" 
 EOF
        cd tmp
        zip -r -0 "${destdir}/$prefix.zip" ./*
-       mat2 --inplace "${destdir}/$prefix.zip" 
+       # mat2 --inplace "${destdir}/$prefix.zip" 
        cd ..

        rm -rf tmp/

We have:
                                                                                                                                                    |  N/A%  None  ETA:  --:--:-- --- output/vertical-800x1280.zip
+++ tests/bootanimation/vertical-800x1280.zip
├── zipinfo {}
│ @@ -1,5 +1,4 @@
│ -Zip file size: 78973 bytes, number of entries: 3
│ --rw-r--r--  3.0 unx       27 bx stor 21-Dec-04 02:23 desc.txt
│ -drwxr-xr-x  3.0 unx        0 bx stor 21-Dec-04 02:23 replicant/
│ --rw-r--r--  3.0 unx    78442 bx stor 21-Dec-04 02:23 replicant/vertical-800x1280.png
│ -3 files, 78469 bytes uncompressed, 78469 bytes compressed:  0.0%
│ +Zip file size: 60231 bytes, number of entries: 2
│ +?rw-------  2.0 unx       27 b- defN 80-Jan-01 00:00 desc.txt
│ +?rw-------  2.0 unx    63584 b- defN 80-Jan-01 00:00 replicant/vertical-800x1280.png
│ +2 files, 63611 bytes uncompressed, 59979 bytes compressed:  5.7%
├── zipnote {}
│ @@ -1,10 +1,7 @@
│  Filename: desc.txt
│  Comment: 
│  
│ -Filename: replicant/
│ -Comment: 
│ -
│  Filename: replicant/vertical-800x1280.png
│  Comment: 
│  
│  Zip file comment:
├── filetype from file(1)
│ @@ -1 +1 @@
│ -Zip archive data, at least v1.0 to extract, compression method=store
│ +Zip archive data, at least v2.0 to extract, compression method=deflate
├── replicant/vertical-800x1280.png
│┄ 'sng' not available in path. Falling back to binary comparison.
│ @@ -1,4903 +1,3974 @@
│  00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452  .PNG........IHDR
│ -00000010: 0000 0320 0000 0500 1002 0000 0060 fe7d  ... .........`.}
│ -00000020: 7000 0000 0467 414d 4100 00b1 8f0b fc61  p....gAMA......a
│ -00000030: 0500 0000 2063 4852 4d00 007a 2600 0080  .... cHRM..z&...
[...]

And since Replicant 6 work, it's probably the compression level that makes the zip not displayed by the bootanimation program.

Actions #2

Updated by Denis 'GNUtoo' Carikli over 3 years ago

  • Status changed from New to Resolved
  • Resolution set to fixed

This is now fixed.

Actions

Also available in: Atom PDF