Commit graph

438 commits

Author SHA1 Message Date
ThomasV
cab0f7d9e0 add sqlalchemy to requirements 2019-08-20 09:03:11 +02:00
ThomasV
d493dd1953 add pycryptodomex to requirements 2019-08-20 09:03:11 +02:00
SomberNight
9256472485 rm 'cryptography' as dependency; use new pycryptodomex version
pycryptodomex 3.7 implemented chacha20_poly1305 and chacha20,
and it is already used (although optionally) to speed up AES,
so we can remove cryptography and make pycryptodomex mandatory for LN
2019-08-20 09:03:11 +02:00
Janus
6bec42d18a requirements: require bitstring for lnaddr, cryptography for lnbase 2019-08-20 09:03:10 +02:00
SomberNight
0ec9f79402
rerun freeze_packages 2019-08-09 21:28:35 +02:00
SomberNight
018b962e61
requirements: allow using newer pycryptodomex
upper bound was previously added in cb4784c8ed
issue linked there was fixed in pyinstaller 3.5,
which we now use since ab95eff5aa
2019-08-09 21:27:13 +02:00
SomberNight
fc5248550c
appimage build: change base to ubuntu 16.04
ubuntu 14.04 is EOL
2019-08-09 20:56:20 +02:00
SomberNight
be4cf321e0
ledger: remove mobile pairing 2FA support for Ledger Nano
service no longer provided by Ledger; app not in Google Play Store any more

based on Electron-Cash/Electron-Cash#1298
2019-08-09 19:54:09 +02:00
SomberNight
ab95eff5aa
build: update pyinstaller to 3.5 2019-08-09 19:13:12 +02:00
SomberNight
c8e2653690
wine build: pin build dependencies
"pip install pyinstaller" was "silently" grabbing unpinned dependencies
2019-08-09 19:05:32 +02:00
Axel Gembe
84ca7ef306
Build: Set a fixed umask before starting Docker
Umask seems to leak into Docker containers and causes the build to
not be reproducible accross different umasks.

-----

taken from Electron-Cash/Electron-Cash@984967b408
2019-07-23 21:24:32 +02:00
SomberNight
249e3d496b
appimage build: rm "build" folder if present as it makes build non-reproducible
AFAICT the "build" is created if you "python setup.py install" electrum,
which is now deprecated in any case.
2019-07-19 04:52:26 +02:00
ThomasV
16f56ccbf0 load version module in make_download 2019-07-11 16:54:47 +02:00
ThomasV
665d6540d7 pass host to upload script 2019-07-11 16:34:33 +02:00
SomberNight
61bf5ce59a
windows build: calculate COFF checksum ourselves
closes #5504
2019-07-10 23:44:51 +02:00
SomberNight
c67705e116
appimage build: build was failing on some host systems
On Ubuntu host, build succeeded; but e.g. on Manjaro host, it failed with:
```
./build.sh: line 233: /opt/electrum/contrib/build-linux/appimage/../../../contrib/build-linux/appimage/.cache/appimage/appimagetool: No such file or directory
```
2019-07-10 20:26:25 +02:00
Axel Gembe
69b673b8a1
AppImage: Bundle more binaries to increase compatibility
This slightly increases the AppImage size but allows us to be more
compatible with older distributions.

-----

taken from Electron-Cash/Electron-Cash@96644acd6f
2019-07-04 23:35:52 +02:00
Axel Gembe
dcecf7db4b
Wine Build: Make it less noisy
This suppresses the pip script location warnings, like we already
do for AppImage. It also disables the Wine debugging messages by
setting WINEDEBUG=-all.

-----

taken from Electron-Cash/Electron-Cash@d3685b038e
2019-07-04 22:32:51 +02:00
Axel Gembe
0d1a473bb0
AppImage: Disable pip warnings about script install locations
It warns about scripts being installed in a location that is not on the
path, but that is inconsequential as they are not used.

-----

taken from Electron-Cash/Electron-Cash@9a29017c5d
2019-07-04 22:31:56 +02:00
SomberNight
1518c7d133
build macOS README: mention how Qt affects min supported macOS version 2019-07-04 20:53:24 +02:00
SomberNight
194bf84418
build readme nits
sudo is needed to rm FRESH_CLONE as docker is running as sudo.
the proper fix would be to have docker not run as sudo...
2019-07-03 21:09:11 +02:00
SomberNight
5ed6a68d8c
update make_locale doc references, and small nits 2019-07-03 17:42:40 +02:00
SomberNight
f1516d60ec
mac build: fix locale in binaries 2019-07-03 17:37:02 +02:00
SomberNight
ec56a4612c
make_tgz: build locale from deterministic submodule 2019-07-03 17:36:29 +02:00
ThomasV
7b7397a8c7 chmod push_locale 2019-07-03 16:20:40 +02:00
ThomasV
5db21134aa separate push and pull locale 2019-07-03 16:19:26 +02:00
ThomasV
aa00fa2a5c update submodule 2019-07-03 16:01:10 +02:00
SomberNight
1d0f67996e
build-wine: build our own pyinstaller bootloader
This seems to reduce anti-virus false positives.

based on:
Electron-Cash/Electron-Cash@1ac12e4111
Electron-Cash/Electron-Cash@9726498e95
Electron-Cash/Electron-Cash@40b1139d67
2019-07-01 22:22:25 +02:00
SomberNight
423d44bcaf
build-wine: some clean-up. cache downloads. better status messages 2019-07-01 20:18:30 +02:00
SomberNight
6455f515f0
build-wine: don't use gpg keyservers
based on Electron-Cash/Electron-Cash@a582be04d3
2019-07-01 18:01:14 +02:00
SomberNight
baa0293620
android build: persist debug keystore
so that we can upgrade debug installations on the phone and keep the datadir
2019-06-27 07:08:03 +02:00
SomberNight
7bf6786bf5
build: note whether binary is reproducible in each case 2019-06-26 04:18:24 +02:00
SomberNight
9f28f8bcc6
Appimage: follow-up b69249f6c3
libsecp256k1.a needs to be deleted as it's not reproducible...
2019-06-23 04:17:46 +02:00
SomberNight
266484e0fd
Appimage: nits. use "fail"
somewhat based on same script in Electron-Cash/Electron-Cash
2019-06-23 04:13:28 +02:00
Axel Gembe
bb59a1298a
AppImage: Patch Python sysconfigdata
When building in docker on macOS, python builds with .exe extension
because the case insensitive file system of macOS leaks into docker.
This causes the build to result in a different output on macOS compared
to Linux. We simply patch sysconfigdata to remove the extension.

Some more info: https://bugs.python.org/issue27631
2019-06-23 04:13:23 +02:00
SomberNight
31ba440d1c
build-wine: print some text before "pip install" 2019-06-23 03:09:05 +02:00
SomberNight
ec496a8222
requirements-hw: rm Cython
not actually needed
based on Electron-Cash/Electron-Cash@70de1a2b53
2019-06-23 03:06:36 +02:00
Axel Gembe
b69249f6c3
AppImage: Remove unused binaries
There are a lot of dupliacted files, testing files and unused libraries
present in the AppImage. Removing these reduces the AppImage size
significantly.

-----

taken from Electron-Cash/Electron-Cash@cff5fb1289
2019-06-23 02:56:33 +02:00
Axel Gembe
501fd8f9e5
AppImage: Improve reproducible Python build reliability on Linux
There was a problem where Python would not properly include the faketime
timestamp sometimes. This patch replaces faketime with a patch that is
used by Ubuntu for reproducible builds by exporting BUILD_DATE and
BUILD_TIME with the desired values.

-----

taken from Electron-Cash/Electron-Cash@9532508a3f
2019-06-23 02:47:16 +02:00
Axel Gembe
ae714772c3
AppImage: Make build reproducible
We build our own mksquashfs from squashfskit which supports generating
reproducible squashfs images. We use a small wrapper script to remove
the -mkfs-fixed-time which appimagekit passes but squashfskits
mksquashfs does not support.

-----

taken from Electron-Cash/Electron-Cash@dd1f106f4f
see AppImage/AppImageKit#929
2019-06-23 02:40:29 +02:00
SomberNight
c7b64f4794
AppImage: update appimagetool version 2019-06-11 20:24:51 +02:00
SomberNight
63e5119ceb
builds: parallelise "make" by setting "-j4" 2019-06-11 20:02:28 +02:00
SomberNight
fbcf6f48b9
rerun freeze_packages 2019-06-04 20:36:52 +02:00
SomberNight
046518d7f7
requirements: restrict qdarkstyle to <2.7
qdarkstyle 2.7 pulls in new dependencies
see ColinDuquesnoy/QDarkStyleSheet#182
2019-06-04 20:35:46 +02:00
SomberNight
41f160dd74
update to aiorpcx 0.18 2019-05-27 19:35:30 +02:00
Axel Gembe
cd52350f5d
AppImage: Remove unused PyQt5 modules
We already delete unused Qt modules, but we weren't deleting their PyQt5 modules.

-----

taken from Electron-Cash/Electron-Cash@e044c94677
2019-05-15 19:04:42 +02:00
Axel Gembe
5afda62ee3
AppImage: Remove Qt.so to prevent importing from PyQt5.Qt
Importing from PyQt5.Qt is an unnecessary fallback that loads every PyQt5 module.

-----

taken from Electron-Cash/Electron-Cash@d69471b31d
2019-05-15 19:03:18 +02:00
Axel Gembe
c3b92aa13a
AppImage: Copy libusb binary into image
pkg2appimage excludes libusb-1.0.so by default for no good reason:

83483c2971/excludelist (L112)

This can cause an issue when the AppImage loads the systems libusb but the
systems libusb in turn loads libudev from the AppImage. The kernel ABI for
libusb will not be changing so it is safe to bundle it into the AppImage.

-----

taken from Electron-Cash/Electron-Cash@25d45fdcbf
2019-05-15 19:01:39 +02:00
SomberNight
aab067372c
requirements: pin PyQt5-sip version due to build problems
see https://tickets.metabrainz.org/browse/PICARD-1472
having issues on MacOS to codesign sip.so when PyQt5-sip==4.19.15:
PyQt5/sip.so malformed object (unknown load command 7)
2019-05-09 18:11:50 +02:00
ThomasV
9a3ea0e514 update locale 2019-05-09 16:09:05 +02:00