mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
Update macOS build
This commit is contained in:
parent
6e4774870a
commit
b9fa89ec19
5 changed files with 55 additions and 18 deletions
12
README.rst
12
README.rst
|
@ -93,20 +93,12 @@ This directory contains the python dependencies used by Electrum.
|
||||||
Mac OS X / macOS
|
Mac OS X / macOS
|
||||||
--------
|
--------
|
||||||
|
|
||||||
::
|
See `contrib/build-osx/`.
|
||||||
|
|
||||||
# On MacPorts installs:
|
|
||||||
sudo python3 setup-release.py py2app
|
|
||||||
|
|
||||||
# On Homebrew installs:
|
|
||||||
ARCHFLAGS="-arch i386 -arch x86_64" sudo python3 setup-release.py py2app --includes sip
|
|
||||||
|
|
||||||
sudo hdiutil create -fs HFS+ -volname "Electrum" -srcfolder dist/Electrum.app dist/electrum-VERSION-macosx.dmg
|
|
||||||
|
|
||||||
Windows
|
Windows
|
||||||
-------
|
-------
|
||||||
|
|
||||||
See `contrib/build-wine/README` file.
|
See `contrib/build-wine/`.
|
||||||
|
|
||||||
|
|
||||||
Android
|
Android
|
||||||
|
|
17
contrib/build-osx/README.md
Normal file
17
contrib/build-osx/README.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
Building Mac OS binaries
|
||||||
|
========================
|
||||||
|
|
||||||
|
This guide explains how to build Electrum binaries for macOS systems.
|
||||||
|
We build our binaries on El Capitan (10.11.6) as building it on High Sierra
|
||||||
|
makes the binaries incompatible with older versions.
|
||||||
|
|
||||||
|
|
||||||
|
## 1. Run the script
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
./make_osx
|
||||||
|
|
||||||
|
## 2. Done
|
||||||
|
|
||||||
|
Hopefully it will be that simple.
|
34
contrib/build-osx/make_osx
Executable file
34
contrib/build-osx/make_osx
Executable file
|
@ -0,0 +1,34 @@
|
||||||
|
#!/bin/bash
|
||||||
|
build_dir=$(dirname "$0")
|
||||||
|
test -n "$build_dir" -a -d "$build_dir" || exit
|
||||||
|
cd $build_dir/../..
|
||||||
|
|
||||||
|
export PYTHONHASHSEED=22
|
||||||
|
VERSION=`git describe --tags`
|
||||||
|
|
||||||
|
sw_vers
|
||||||
|
python3 --version
|
||||||
|
echo -n "Pyinstaller version "
|
||||||
|
pyinstaller --version
|
||||||
|
|
||||||
|
rm -rf ./dist
|
||||||
|
|
||||||
|
|
||||||
|
rm -rf /tmp/electrum-build > /dev/null 2>&1
|
||||||
|
mkdir /tmp/electrum-build
|
||||||
|
|
||||||
|
|
||||||
|
echo "Downloading icons and locale..."
|
||||||
|
for repo in icons locale; do
|
||||||
|
git clone https://github.com/spesmilo/electrum-$repo /tmp/electrum-build/electrum-$repo
|
||||||
|
done
|
||||||
|
|
||||||
|
cp -R /tmp/electrum-build/electrum-locale/locale/ ./lib/locale/
|
||||||
|
cp /tmp/electrum-build/electrum-icons/icons_rc.py ./gui/qt/
|
||||||
|
|
||||||
|
echo "Building Electrum..."
|
||||||
|
python3 setup.py install --user > /dev/null
|
||||||
|
python3 -m pip install pyqt5 --user
|
||||||
|
|
||||||
|
pyinstaller --noconfirm --ascii --name $VERSION contrib/build-osx/osx.spec
|
||||||
|
hdiutil create -fs HFS+ -volname "Electrum" -srcfolder dist/Electrum.app dist/electrum-$VERSION.dmg
|
|
@ -12,7 +12,7 @@ for i, x in enumerate(sys.argv):
|
||||||
else:
|
else:
|
||||||
raise BaseException('no version')
|
raise BaseException('no version')
|
||||||
|
|
||||||
electrum = "../"
|
electrum = os.path.abspath("../../")
|
||||||
block_cipher = None
|
block_cipher = None
|
||||||
|
|
||||||
# see https://github.com/pyinstaller/pyinstaller/issues/2005
|
# see https://github.com/pyinstaller/pyinstaller/issues/2005
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
rm -rf dist
|
|
||||||
export PYTHONHASHSEED=22
|
|
||||||
VERSION=`git describe --tags`
|
|
||||||
pyinstaller --noconfirm --ascii --name $VERSION contrib/osx.spec
|
|
||||||
hdiutil create -fs HFS+ -volname "Electrum" -srcfolder dist/Electrum.app dist/electrum-$VERSION.dmg
|
|
Loading…
Add table
Reference in a new issue