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

[tor-commits] [Git][tpo/applications/tor-browser-build][main] 2 commits: Bug 41937: Avoid creating an empty out directory in case of build failure



Title: GitLab

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

Commits:

  • 084433d4
    by Nicolas Vigier at 2026-11-20T13:55:40+01:00
    Bug 41937: Avoid creating an empty out directory in case of build failure
    
    In tor-expert-bundle and tor-expert-bundle-aar.
    
  • 88db9965
    by Nicolas Vigier at 2026-11-20T14:05:06+01:00
    Bug 41895&41923: Fix tor-expert-bundle build for Android
    
    Fixup for 0830ce3fe5f58ae08a0aa9467b575b86dcbab514.
    

2 changed files:

Changes:

  • projects/tor-expert-bundle-aar/build
    1 1
     #!/bin/bash
    
    2 2
     [% c("var/set_default_env") -%]
    
    3
    -distdir=[% dest_dir %]/[% c('filename') %]
    
    4 3
     
    
    5
    -mkdir -p $distdir
    
    4
    +mkdir -p $rootdir/out
    
    6 5
     
    
    7 6
     [% IF c("var/android_single_arch") -%]
    
    8
    -  mv $rootdir/[% c('input_files_by_name/tor-expert-bundle') %]/tor-expert-bundle-[% c("arch") %].aar $distdir/tor-expert-bundle.aar
    
    7
    +  mv $rootdir/[% c('input_files_by_name/tor-expert-bundle') %]/tor-expert-bundle-[% c("arch") %].aar $rootdir/out/tor-expert-bundle.aar
    
    9 8
     [% ELSE -%]
    
    10 9
       mkdir aar
    
    11 10
       cd aar
    
    ... ... @@ -17,6 +16,10 @@ mkdir -p $distdir
    17 16
       [% END -%]
    
    18 17
       [% c('zip', {
    
    19 18
           zip_src => [ '*' ],
    
    20
    -      zip_args => '$distdir/tor-expert-bundle.aar'
    
    19
    +      zip_args => '$rootdir/out/tor-expert-bundle.aar'
    
    21 20
         }) %]
    
    22 21
     [% END -%]
    
    22
    +
    
    23
    +output_dir="[% dest_dir %]/[% c('filename') %]"
    
    24
    +rm -Rf "$output_dir"
    
    25
    +mv "$rootdir/out" "$output_dir"

  • projects/tor-expert-bundle/build
    ... ... @@ -2,9 +2,7 @@
    2 2
     [% c("var/set_default_env") -%]
    
    3 3
     distdir=$rootdir/[% project %]
    
    4 4
     mkdir -p $distdir
    
    5
    -
    
    6
    -output_dir=[% dest_dir %]/[% c('filename') %]
    
    7
    -mkdir -p $output_dir
    
    5
    +mkdir -p $rootdir/out
    
    8 6
     
    
    9 7
     tar -xf $rootdir/[% c('input_files_by_name/moat-settings') %]
    
    10 8
     
    
    ... ... @@ -12,7 +10,7 @@ cd $distdir
    12 10
     
    
    13 11
     tar -xkf $rootdir/[% c('input_files_by_name/tor') %]
    
    14 12
     
    
    15
    -mv "$rootdir/torrc-defaults" data
    
    13
    +test -f "$rootdir/torrc-defaults" && mv "$rootdir/torrc-defaults" data
    
    16 14
     
    
    17 15
     cd tor
    
    18 16
     mkdir pluggable_transports && cd pluggable_transports
    
    ... ... @@ -70,7 +68,7 @@ cd $distdir
    70 68
       cd aar
    
    71 69
       [% c('zip', {
    
    72 70
           zip_src => [ '*' ],
    
    73
    -      zip_args => '$output_dir/tor-expert-bundle-' _ c('arch') _ '.aar'
    
    71
    +      zip_args => '$rootdir/out/tor-expert-bundle-' _ c('arch') _ '.aar'
    
    74 72
         }) %]
    
    75 73
       cd ..
    
    76 74
     [% END %]
    
    ... ... @@ -82,6 +80,11 @@ cd $distdir
    82 80
       END;
    
    83 81
       c('tar', {
    
    84 82
         tar_src => tar_src,
    
    85
    -    tar_args => '-czvf' _ dest_dir _ '/' _ c('filename') _ '/tor-expert-bundle.tar.gz',
    
    83
    +    tar_args => '-czvf ' _ '$rootdir/out/tor-expert-bundle.tar.gz',
    
    86 84
       });
    
    87 85
     %]
    
    86
    +
    
    87
    +
    
    88
    +output_dir="[% dest_dir %]/[% c('filename') %]"
    
    89
    +rm -Rf "$output_dir"
    
    90
    +mv "$rootdir/out" "$output_dir"

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