aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2024-02-22 10:54:50 -0800
committerMicah Lee <micah@micahflee.com>2024-02-22 10:54:50 -0800
commitfd50b5ad2003c8178b68e0b7603feb9a8047b5fd (patch)
tree4ebb881c5d303b180ca86dd8938fd2e382f29cd5
parentb47f2387f14e9e72a0343865b9d026895ee09f09 (diff)
downloadonionshare-fix-homebrew-path.tar.gz
onionshare-fix-homebrew-path.zip
Homebrew install create-dmg in a different place nowfix-homebrew-path
-rw-r--r--desktop/scripts/build-macos.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/scripts/build-macos.py b/desktop/scripts/build-macos.py
index c998eb0d..8bbadfba 100644
--- a/desktop/scripts/build-macos.py
+++ b/desktop/scripts/build-macos.py
@@ -248,7 +248,9 @@ def codesign(app_path):
@click.argument("app_path")
def package(app_path):
"""Build the DMG package"""
- if not os.path.exists("/usr/local/bin/create-dmg"):
+ if not os.path.exists("/usr/local/bin/create-dmg") and not os.path.exists(
+ "/opt/homebrew/bin/create-dmg"
+ ):
print("> Error: create-dmg is not installed")
return