diff --git a/contrib/osx/make_osx b/contrib/osx/make_osx index 33008fda3..735995df9 100755 --- a/contrib/osx/make_osx +++ b/contrib/osx/make_osx @@ -219,12 +219,6 @@ VERSION=`git describe --tags --dirty --always` info "Building binary" pyinstaller --noconfirm --ascii --clean --name $VERSION contrib/osx/osx.spec || fail "Could not build binary" -info "Adding bitcoin URI types to Info.plist" -plutil -insert 'CFBundleURLTypes' \ - -xml ' CFBundleURLName bitcoin CFBundleURLSchemes bitcoinlightning ' \ - -- dist/$PACKAGE.app/Contents/Info.plist \ - || fail "Could not add keys to Info.plist. Make sure the program 'plutil' exists and is installed." - DoCodeSignMaybe "app bundle" "dist/${PACKAGE}.app" if [ ! -z "$CODESIGN_CERT" ]; then diff --git a/contrib/osx/osx.spec b/contrib/osx/osx.spec index d76aa994c..c1d23f208 100644 --- a/contrib/osx/osx.spec +++ b/contrib/osx/osx.spec @@ -123,6 +123,11 @@ app = BUNDLE( bundle_identifier=None, info_plist={ 'NSHighResolutionCapable': 'True', - 'NSSupportsAutomaticGraphicsSwitching': 'True' + 'NSSupportsAutomaticGraphicsSwitching': 'True', + 'CFBundleURLTypes': + [{ + 'CFBundleURLName': 'bitcoin', + 'CFBundleURLSchemes': ['bitcoin', 'lightning', ], + }], }, )