mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-08 03:29:50 +00:00
mac build: build qr scanner on separate machine
This commit is contained in:
parent
f54c387172
commit
bec1860197
2 changed files with 17 additions and 4 deletions
|
@ -8,12 +8,13 @@ This guide explains how to build Electrum binaries for macOS systems.
|
||||||
|
|
||||||
This needs to be done on a system running macOS or OS X. We use El Capitan (10.11.6) as building it
|
This needs to be done on a system running macOS or OS X. We use El Capitan (10.11.6) as building it
|
||||||
on High Sierra (or later)
|
on High Sierra (or later)
|
||||||
makes the binaries incompatible with older versions.
|
makes the binaries [incompatible with older versions](https://github.com/pyinstaller/pyinstaller/issues/1191).
|
||||||
|
|
||||||
|
Before starting, make sure that the Xcode command line tools are installed (e.g. you have `git`).
|
||||||
|
|
||||||
#### 1.1 Get Xcode
|
#### 1.1a Get Xcode
|
||||||
|
|
||||||
Building the QR code reader (CalinsQRReader) requires full Xcode (not just command line tools).
|
Building the QR scanner (CalinsQRReader) requires full Xcode (not just command line tools).
|
||||||
|
|
||||||
The last Xcode version compatible with El Capitan is Xcode 8.2.1
|
The last Xcode version compatible with El Capitan is Xcode 8.2.1
|
||||||
|
|
||||||
|
@ -27,6 +28,17 @@ Make sure it is the "selected" xcode (e.g.):
|
||||||
|
|
||||||
sudo xcode-select -s $HOME/Downloads/Xcode.app/Contents/Developer/
|
sudo xcode-select -s $HOME/Downloads/Xcode.app/Contents/Developer/
|
||||||
|
|
||||||
|
#### 1.1b Build QR scanner separately on newer Mac
|
||||||
|
|
||||||
|
Alternatively, you can try building just the QR scanner on newer macOS.
|
||||||
|
|
||||||
|
On newer Mac, run:
|
||||||
|
|
||||||
|
pushd contrib/osx/CalinsQRReader; xcodebuild; popd
|
||||||
|
cp -r contrib/osx/CalinsQRReader/build prebuilt_qr
|
||||||
|
|
||||||
|
Move `prebuilt_qr` to El Capitan: `contrib/osx/CalinsQRReader/prebuilt_qr`.
|
||||||
|
|
||||||
|
|
||||||
#### 1.2 Build Electrum
|
#### 1.2 Build Electrum
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,8 @@ info "Building CalinsQRReader..."
|
||||||
d=contrib/osx/CalinsQRReader
|
d=contrib/osx/CalinsQRReader
|
||||||
pushd $d
|
pushd $d
|
||||||
rm -fr build
|
rm -fr build
|
||||||
xcodebuild || fail "Could not build CalinsQRReader"
|
# prefer building using xcode ourselves. otherwise fallback to prebuilt binary
|
||||||
|
xcodebuild || cp -r prebuilt_qr build || fail "Could not build CalinsQRReader"
|
||||||
popd
|
popd
|
||||||
DoCodeSignMaybe "CalinsQRReader.app" "${d}/build/Release/CalinsQRReader.app" "$APP_SIGN" # If APP_SIGN is empty will be a noop
|
DoCodeSignMaybe "CalinsQRReader.app" "${d}/build/Release/CalinsQRReader.app" "$APP_SIGN" # If APP_SIGN is empty will be a noop
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue