From 18557f88fcf72d49b7d1ac9a7dcb4fc6b00cef86 Mon Sep 17 00:00:00 2001 From: deeplow Date: Wed, 12 Apr 2023 14:03:13 +0100 Subject: [PATCH] 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. --- install/macos/build-app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/macos/build-app.py b/install/macos/build-app.py index 2ec0fc0..815aa6f 100755 --- a/install/macos/build-app.py +++ b/install/macos/build-app.py @@ -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