mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Allow "create-dmg" to be in other places
If installed with homebrew, create-dmg will be installed at a different location. It makes more sense to use the 'which' utility to find where it is.
This commit is contained in:
parent
21875714b8
commit
18557f88fc
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ def sign_app_bundle(build_path, dist_path, app_path):
|
||||||
print(f"○ Signed app bundle: {app_path}")
|
print(f"○ Signed app bundle: {app_path}")
|
||||||
|
|
||||||
# Detect if create-dmg is installed
|
# Detect if create-dmg is installed
|
||||||
if not os.path.exists("/usr/local/bin/create-dmg"):
|
if not shutil.which("create-dmg"):
|
||||||
print("create-dmg is not installed, skipping creating a DMG")
|
print("create-dmg is not installed, skipping creating a DMG")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue