|
|
@ -72,8 +72,8 @@ cp ./contrib/deterministic-build/electrum-icons/icons_rc.py ./electrum/gui/qt |
|
|
|
info "Downloading libusb..." |
|
|
|
curl https://homebrew.bintray.com/bottles/libusb-1.0.22.el_capitan.bottle.tar.gz | \ |
|
|
|
tar xz --directory $BUILDDIR |
|
|
|
cp $BUILDDIR/libusb/1.0.22/lib/libusb-1.0.dylib contrib/build-osx |
|
|
|
DoCodeSignMaybe "libusb" "contrib/build-osx/libusb-1.0.dylib" "$APP_SIGN" # If APP_SIGN is empty will be a noop |
|
|
|
cp $BUILDDIR/libusb/1.0.22/lib/libusb-1.0.dylib contrib/osx |
|
|
|
DoCodeSignMaybe "libusb" "contrib/osx/libusb-1.0.dylib" "$APP_SIGN" # If APP_SIGN is empty will be a noop |
|
|
|
|
|
|
|
info "Building libsecp256k1" |
|
|
|
brew install autoconf automake libtool |
|
|
@ -85,11 +85,11 @@ git clean -f -x -q |
|
|
|
./configure --enable-module-recovery --enable-experimental --enable-module-ecdh --disable-jni |
|
|
|
make |
|
|
|
popd |
|
|
|
cp $BUILDDIR/secp256k1/.libs/libsecp256k1.0.dylib contrib/build-osx |
|
|
|
DoCodeSignMaybe "libsecp256k1" "contrib/build-osx/libsecp256k1.0.dylib" "$APP_SIGN" # If APP_SIGN is empty will be a noop |
|
|
|
cp $BUILDDIR/secp256k1/.libs/libsecp256k1.0.dylib contrib/osx |
|
|
|
DoCodeSignMaybe "libsecp256k1" "contrib/osx/libsecp256k1.0.dylib" "$APP_SIGN" # If APP_SIGN is empty will be a noop |
|
|
|
|
|
|
|
info "Building CalinsQRReader..." |
|
|
|
d=contrib/CalinsQRReader |
|
|
|
d=contrib/osx/CalinsQRReader |
|
|
|
pushd $d |
|
|
|
rm -fr build |
|
|
|
xcodebuild || fail "Could not build CalinsQRReader" |
|
|
@ -117,7 +117,7 @@ for d in ~/Library/Python/ ~/.pyenv .; do |
|
|
|
done |
|
|
|
|
|
|
|
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/osx/osx.spec || fail "Could not build binary" |
|
|
|
|
|
|
|
info "Adding bitcoin URI types to Info.plist" |
|
|
|
plutil -insert 'CFBundleURLTypes' \ |