diff --git a/build-tor.py b/build-tor.py index 9425a3ecdcc747edae1d47f90634f4c16d72030c..2bd9708fe0e54176f176144a6597b1dd2dbfbd51 100755 --- a/build-tor.py +++ b/build-tor.py @@ -30,10 +30,10 @@ def main(): build_android() # zip geoip database - geoip_path = os.path.join(EXT_DIR, 'tor', 'src', 'config', 'geoip') + geoip_path = os.path.join(REPO_DIR, 'geoip') + copy(os.path.join(EXT_DIR, 'tor', 'src', 'config', 'geoip'), geoip_path) reset_time(geoip_path) - copy(geoip_path, os.path.join(REPO_DIR, 'geoip')) # copy first to not zip directory - check_call(['zip', '-X', os.path.join(REPO_DIR, 'geoip.zip'), os.path.join(REPO_DIR, 'geoip')]) + check_call(['zip', '-X', 'geoip.zip', 'geoip'], cwd=REPO_DIR) # zip binaries together file_list = ['tor_linux-x86_64.zip', 'geoip.zip']