mac build: let pyinstaller handle Info.plist
note: newer versions of pyinstaller (4.4+ ?) want to sign the bundle themselves, in which case modifying the Info.plist file after pyinstaller returns invalidates the sig.
This commit is contained in:
@@ -219,12 +219,6 @@ VERSION=`git describe --tags --dirty --always`
|
|||||||
info "Building binary"
|
info "Building binary"
|
||||||
pyinstaller --noconfirm --ascii --clean --name $VERSION contrib/osx/osx.spec || fail "Could not build 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 '<array><dict> <key>CFBundleURLName</key> <string>bitcoin</string> <key>CFBundleURLSchemes</key> <array><string>bitcoin</string><string>lightning</string></array> </dict></array>' \
|
|
||||||
-- 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"
|
DoCodeSignMaybe "app bundle" "dist/${PACKAGE}.app"
|
||||||
|
|
||||||
if [ ! -z "$CODESIGN_CERT" ]; then
|
if [ ! -z "$CODESIGN_CERT" ]; then
|
||||||
|
|||||||
@@ -123,6 +123,11 @@ app = BUNDLE(
|
|||||||
bundle_identifier=None,
|
bundle_identifier=None,
|
||||||
info_plist={
|
info_plist={
|
||||||
'NSHighResolutionCapable': 'True',
|
'NSHighResolutionCapable': 'True',
|
||||||
'NSSupportsAutomaticGraphicsSwitching': 'True'
|
'NSSupportsAutomaticGraphicsSwitching': 'True',
|
||||||
|
'CFBundleURLTypes':
|
||||||
|
[{
|
||||||
|
'CFBundleURLName': 'bitcoin',
|
||||||
|
'CFBundleURLSchemes': ['bitcoin', 'lightning', ],
|
||||||
|
}],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user