Merge pull request #1877 from onionshare/fix-homebrew-path

Fix homebrew path
This commit is contained in:
Saptak Sengupta 2024-02-22 20:14:16 +01:00 committed by GitHub
commit 28d9ef17c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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