mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-29 14:19:30 -04:00
Tweaks for libevent
This commit is contained in:
parent
ef43fc6762
commit
c7a4740529
1 changed files with 7 additions and 0 deletions
|
@ -166,6 +166,13 @@ def get_tor_macos(gpg, torkey, macos_url, macos_filename, expected_macos_sig):
|
||||||
os.path.join(dist_path, "tor"),
|
os.path.join(dist_path, "tor"),
|
||||||
)
|
)
|
||||||
os.chmod(os.path.join(dist_path, "tor"), 0o755)
|
os.chmod(os.path.join(dist_path, "tor"), 0o755)
|
||||||
|
# This is necessary for cx_freeze itself to work...
|
||||||
|
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"),
|
||||||
|
)
|
||||||
|
# ...but the libevent-2.1.7.dylib now seems to also need to be in a 'lib'
|
||||||
|
# subfolder of the tor/ folder to work on MacOS, so copy it there too.
|
||||||
shutil.copyfile(
|
shutil.copyfile(
|
||||||
os.path.join(dmg_tor_path, "MacOS", "Tor", "libevent-2.1.7.dylib"),
|
os.path.join(dmg_tor_path, "MacOS", "Tor", "libevent-2.1.7.dylib"),
|
||||||
os.path.join(tor_lib_dir, "libevent-2.1.7.dylib"),
|
os.path.join(tor_lib_dir, "libevent-2.1.7.dylib"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue