|
|
|
@ -90,5 +90,11 @@ done |
|
|
|
info "Building binary" |
|
|
|
info "Building binary" |
|
|
|
pyinstaller --noconfirm --ascii --clean --name $VERSION contrib/build-osx/osx.spec || fail "Could not build binary" |
|
|
|
pyinstaller --noconfirm --ascii --clean --name $VERSION contrib/build-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></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." |
|
|
|
|
|
|
|
|
|
|
|
info "Creating .DMG" |
|
|
|
info "Creating .DMG" |
|
|
|
hdiutil create -fs HFS+ -volname $PACKAGE -srcfolder dist/$PACKAGE.app dist/electrum-$VERSION.dmg || fail "Could not create .DMG" |
|
|
|
hdiutil create -fs HFS+ -volname $PACKAGE -srcfolder dist/$PACKAGE.app dist/electrum-$VERSION.dmg || fail "Could not create .DMG" |
|
|
|
|