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

[tor-commits] [Git][tpo/applications/tor-browser-build][main] 2 commits: Bug 41180: Avoid some copies for the expert bundles.



Title: GitLab

morgan pushed to branch main at The Tor Project / Applications / tor-browser-build

Commits:

  • 5a9ee2bd
    by Pier Angelo Vendrame at 2024-08-27T18:34:40+02:00
    Bug 41180: Avoid some copies for the expert bundles.
    
    AndroidManifest.xml should be copied only in tor-expert-bundle when
    doing Android builds.
    The compiler is not needed in tor-expert-bundle-aar.
    
  • d994819d
    by Pier Angelo Vendrame at 2024-08-28T16:41:52+02:00
    Bug 41224: Do not ship Conjure and GeoIP databases on some Android configurations.
    

3 changed files:

Changes:

  • projects/tor-expert-bundle-aar/config
    ... ... @@ -8,8 +8,6 @@ var:
    8 8
     
    
    9 9
     input_files:
    
    10 10
       - project: container-image
    
    11
    -  - name: '[% c("var/compiler") %]'
    
    12
    -    project: '[% c("var/compiler") %]'
    
    13 11
       - project: tor-expert-bundle
    
    14 12
         name: tor-expert-bundle-armv7
    
    15 13
         target_replace:
    
    ... ... @@ -25,4 +23,4 @@ input_files:
    25 23
       - project: tor-expert-bundle
    
    26 24
         name: tor-expert-bundle-x86_64
    
    27 25
         target_replace:
    
    28
    -      '^torbrowser-(?!testbuild).*': 'torbrowser-android-x86_64'
    \ No newline at end of file
    26
    +      '^torbrowser-(?!testbuild).*': 'torbrowser-android-x86_64'

  • projects/tor-expert-bundle/build
    ... ... @@ -15,7 +15,9 @@ mkdir pluggable_transports && cd pluggable_transports
    15 15
     
    
    16 16
     tar -xkf $rootdir/[% c('input_files_by_name/lyrebird') %]
    
    17 17
     tar -xkf $rootdir/[% c('input_files_by_name/snowflake') %]
    
    18
    -tar -xkf $rootdir/[% c('input_files_by_name/conjure') %]
    
    18
    +[% IF c('input_files_by_name/conjure') -%]
    
    19
    +  tar -xkf $rootdir/[% c('input_files_by_name/conjure') %]
    
    20
    +[% END -%]
    
    19 21
     
    
    20 22
     # add per-platform pt extension
    
    21 23
     awk '{gsub(/\$\{pt_extension\}/, "[% c("var/pt_extension") %]"); print}' $rootdir/pt_config.json > pt_config.json
    
    ... ... @@ -33,11 +35,15 @@ cd $distdir
    33 35
       mkdir -p aar/assets/common
    
    34 36
     
    
    35 37
       cp -a tor/libTor.so aar/jni/$abi/
    
    36
    -  cp -a tor/pluggable_transports/conjure-client aar/jni/$abi/libConjure.so
    
    37 38
       cp -a tor/pluggable_transports/lyrebird aar/jni/$abi/libObfs4proxy.so
    
    38 39
       cp -a tor/pluggable_transports/snowflake-client aar/jni/$abi/libSnowflake.so
    
    40
    +  [% IF c('input_files_by_name/conjure') -%]
    
    41
    +    cp -a tor/pluggable_transports/conjure-client aar/jni/$abi/libConjure.so
    
    42
    +  [% END -%]
    
    39 43
     
    
    40
    -  cp -a data/* aar/assets/common/
    
    44
    +  # tor-browser-build#41224, tor-browser#42607: Currently we do not use the
    
    45
    +  # GeoIP databases. So, we avoid copying them to save space on the final APK.
    
    46
    +  # cp -a data/* aar/assets/common/
    
    41 47
     
    
    42 48
       cp -a tor/pluggable_transports/pt_config.json aar/assets/common/
    
    43 49
     
    
    ... ... @@ -57,4 +63,4 @@ cd $distdir
    57 63
         tar_src => tar_src,
    
    58 64
         tar_args => '-czvf' _ dest_dir _ '/' _ c('filename') _ '/tor-expert-bundle.tar.gz',
    
    59 65
       });
    
    60
    -%]
    \ No newline at end of file
    66
    +%]

  • projects/tor-expert-bundle/config
    ... ... @@ -20,5 +20,7 @@ input_files:
    20 20
         project: snowflake
    
    21 21
       - name: conjure
    
    22 22
         project: conjure
    
    23
    +    enable: '[% !c("var/android-x86") && !c("var/android-x86_64") %]'
    
    23 24
       - filename: pt_config.json
    
    24 25
       - filename: AndroidManifest.xml
    
    26
    +    enable: '[% c("var/android") %]'

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits