From c8745cd8dcfb04728efd22b856df9da429f7f988 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 16 Jan 2022 11:44:30 -0800 Subject: [PATCH] Also codesign libevent-2.1.7.dylib --- cli/onionshare_cli/onion.py | 4 ++++ desktop/package/build-mac.py | 1 + 2 files changed, 5 insertions(+) diff --git a/cli/onionshare_cli/onion.py b/cli/onionshare_cli/onion.py index ba9e2e77..76deea80 100644 --- a/cli/onionshare_cli/onion.py +++ b/cli/onionshare_cli/onion.py @@ -414,6 +414,10 @@ class Onion(object): self.common.log("Onion", "connect", f"tor pid: {self.tor_proc.pid}") time.sleep(2) + return_code = self.tor_proc.poll() + if return_code != None: + self.common.log("Onion", "connect", f"tor process has terminated early: {return_code}") + # Connect to the controller self.common.log("Onion", "connect", "authenticating to tor controller") try: diff --git a/desktop/package/build-mac.py b/desktop/package/build-mac.py index eefbd77b..49deda68 100755 --- a/desktop/package/build-mac.py +++ b/desktop/package/build-mac.py @@ -253,6 +253,7 @@ def main(): f"{app_dir}/Contents/Resources/lib/onionshare/resources/tor/obfs4proxy", f"{app_dir}/Contents/Resources/lib/onionshare/resources/tor/snowflake-client", f"{app_dir}/Contents/Resources/lib/onionshare/resources/tor/tor", + f"{app_dir}/Contents/Resources/lib/onionshare/resources/tor/libevent-2.1.7.dylib", f"{app_dir}/Contents/MacOS/onionshare", f"{app_dir}/Contents/MacOS/onionshare-cli", f"{app_dir}",