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: - projects/tor-expert-bundle-aar/build - projects/tor-expert-bundle/build Changes: ===================================== projects/tor-expert-bundle-aar/build ===================================== @@ -1,11 +1,10 @@ #!/bin/bash [% c("var/set_default_env") -%] -distdir=[% dest_dir %]/[% c('filename') %] -mkdir -p $distdir +mkdir -p $rootdir/out [% IF c("var/android_single_arch") -%] - mv $rootdir/[% c('input_files_by_name/tor-expert-bundle') %]/tor-expert-bundle-[% c("arch") %].aar $distdir/tor-expert-bundle.aar + mv $rootdir/[% c('input_files_by_name/tor-expert-bundle') %]/tor-expert-bundle-[% c("arch") %].aar $rootdir/out/tor-expert-bundle.aar [% ELSE -%] mkdir aar cd aar @@ -17,6 +16,10 @@ mkdir -p $distdir [% END -%] [% c('zip', { zip_src => [ '*' ], - zip_args => '$distdir/tor-expert-bundle.aar' + zip_args => '$rootdir/out/tor-expert-bundle.aar' }) %] [% END -%] + +output_dir="[% dest_dir %]/[% c('filename') %]" +rm -Rf "$output_dir" +mv "$rootdir/out" "$output_dir" ===================================== projects/tor-expert-bundle/build ===================================== @@ -2,9 +2,7 @@ [% c("var/set_default_env") -%] distdir=$rootdir/[% project %] mkdir -p $distdir - -output_dir=[% dest_dir %]/[% c('filename') %] -mkdir -p $output_dir +mkdir -p $rootdir/out tar -xf $rootdir/[% c('input_files_by_name/moat-settings') %] @@ -12,7 +10,7 @@ cd $distdir tar -xkf $rootdir/[% c('input_files_by_name/tor') %] -mv "$rootdir/torrc-defaults" data +test -f "$rootdir/torrc-defaults" && mv "$rootdir/torrc-defaults" data cd tor mkdir pluggable_transports && cd pluggable_transports @@ -70,7 +68,7 @@ cd $distdir cd aar [% c('zip', { zip_src => [ '*' ], - zip_args => '$output_dir/tor-expert-bundle-' _ c('arch') _ '.aar' + zip_args => '$rootdir/out/tor-expert-bundle-' _ c('arch') _ '.aar' }) %] cd .. [% END %] @@ -82,6 +80,11 @@ cd $distdir END; c('tar', { tar_src => tar_src, - tar_args => '-czvf' _ dest_dir _ '/' _ c('filename') _ '/tor-expert-bundle.tar.gz', + tar_args => '-czvf ' _ '$rootdir/out/tor-expert-bundle.tar.gz', }); %] + + +output_dir="[% dest_dir %]/[% c('filename') %]" +rm -Rf "$output_dir" +mv "$rootdir/out" "$output_dir" View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/compare/0... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/compare/0... You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
participants (1)
-
Pier Angelo Vendrame (@pierov)