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:
deeplow 2023-04-12 14:03:13 +01:00
parent 21875714b8
commit 18557f88fc
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -88,7 +88,7 @@ def sign_app_bundle(build_path, dist_path, app_path):
print(f"○ Signed app bundle: {app_path}")
# 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")
return