[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41699: Keep only arch-specifc prefs on Android.



Title: GitLab

Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build

Commits:

  • c89ca221
    by Pier Angelo Vendrame at 2026-01-26T15:02:44+01:00
    Bug 41699: Keep only arch-specifc prefs on Android.
    
    Currently, our APKs contain preference files for all the architectures.
    While they are not very big, they are completely useless and, in our
    situation, every saved byte matters.
    

1 changed file:

Changes:

  • projects/browser/build.android
    ... ... @@ -70,6 +70,17 @@ function generate_apk {
    70 70
           -name '*.js' -or -name '*.mjs' \
    
    71 71
           -exec /var/tmp/dist/uglifyjs/bin/uglifyjs --in-situ {} \;
    
    72 72
       [% END -%]
    
    73
    +  [% IF !c("var/android-armv7") -%]
    
    74
    +    rm -rf armeabi-v7a
    
    75
    +  [% END -%]
    
    76
    +  [% IF !c("var/android-aarch64") -%]
    
    77
    +    rm -rf arm64-v8a
    
    78
    +  [% END -%]
    
    79
    +  [% IF !c("var/android-x86_64") -%]
    
    80
    +    rm -rf x86_64
    
    81
    +  [% END -%]
    
    82
    +  # Notice: we take for granted we never rewrite on the source archive!
    
    83
    +  # Be sure to change any `rm` with the appropriate command, shall this change.
    
    73 84
       [% c('zip', {
    
    74 85
             zip_src   => [ '.' ],
    
    75 86
             zip_args  => '-0 ../assets/omni.ja',
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx