mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-09 09:55:00 -04:00
Various fixes for MacOS build
This commit is contained in:
parent
96b838ec3e
commit
e76511aaa9
4 changed files with 21 additions and 4 deletions
|
@ -120,6 +120,9 @@ def get_tor_macos(gpg, torkey, macos_url, macos_filename, expected_macos_sig):
|
|||
dist_path = os.path.join(root_path, "onionshare", "resources", "tor")
|
||||
if not os.path.exists(dist_path):
|
||||
os.makedirs(dist_path, exist_ok=True)
|
||||
tor_lib_dir = os.path.join(root_path, "onionshare", "resources", "tor", "lib")
|
||||
if not os.path.exists(tor_lib_dir):
|
||||
os.makedirs(tor_lib_dir, exist_ok=True)
|
||||
|
||||
# Make sure the working folder exists
|
||||
if not os.path.exists(working_path):
|
||||
|
@ -165,7 +168,7 @@ def get_tor_macos(gpg, torkey, macos_url, macos_filename, expected_macos_sig):
|
|||
os.chmod(os.path.join(dist_path, "tor"), 0o755)
|
||||
shutil.copyfile(
|
||||
os.path.join(dmg_tor_path, "MacOS", "Tor", "libevent-2.1.7.dylib"),
|
||||
os.path.join(dist_path, "libevent-2.1.7.dylib"),
|
||||
os.path.join(tor_lib_dir, "libevent-2.1.7.dylib"),
|
||||
)
|
||||
|
||||
# Eject dmg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue