SomberNight
859d43d0b2
mac build: let pyinstaller handle Info.plist
...
note: newer versions of pyinstaller (4.4+ ?) want to sign the bundle
themselves, in which case modifying the Info.plist file after
pyinstaller returns invalidates the sig.
3 years ago
SomberNight
abec59e17d
mac build: rm unused BUILDDIR
3 years ago
TadeuBAS
39c3d0585d
build scripts: add quotes around some paths ( #7949 )
...
* Update make_libsecp256k1.sh
Avoid error when parent folder has spaces `./make_libsecp256k1.sh: line 31: cd: too many arguments`
* Avoid error when parent folder has spaces, fix for make_libsecp256k1.sh, make_zbar.sh and make_libusb.sh
Co-authored-by: ghost43 <somber.night@protonmail.com>
3 years ago
SomberNight
65fda1f41d
android build: fix Dockerfile "COPY" instructions
...
The build context is $PROJECT_ROOT
3 years ago
SomberNight
b8240bec3e
wine build: build win-iconv-mingw-w64-dev, instead of using debian sid
...
without this, when using a ~week old debian sid snapshot, I got:
```
E: Release file for https://snapshot.debian.org/archive/debian/20220811T031049Z/dists/sid/InRelease is expired (invalid since 1d 11h 56min 39s). Updates for this repository will not be applied.
```
3 years ago
Sander van Grieken
46d76f0504
android: adapt Dockerfile to use debian bullseye base
3 years ago
SomberNight
83cc2d4bc0
build: osx readme: note cli xcode needs to be deleted before install
...
upgrading an existing directory does not seem to work well
3 years ago
SomberNight
8b6b85d385
contrib/make_download: add "source-only" tarball
3 years ago
SomberNight
c4c8a7f424
contrib/add_cosigner: add "source-only" tarball
3 years ago
SomberNight
de8745f69f
contrib/add_cosigner: replace old-style format strings with f-strings
3 years ago
SomberNight
019d213325
Revert "mac build: force using source dist for most of our python dependencies"
...
This reverts commit 0c2a885c66 .
Reverting for now due to reproducibility issues:
```
error: /Users/vagrant/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: can't open file: /tmp/electrum_compare_dmg/signed_app/Electrum.app/Contents/MacOS/libffi.8.dylib (No such file or directory)
```
`Electrum.app/Contents/MacOS/libffi.8.dylib` is included when building on one machine, but missing on the other...
Will have to investigate later.
related https://github.com/spesmilo/electrum/pull/7918
3 years ago
ThomasV
3c5465fc5c
update locale
3 years ago
SomberNight
c2b5e3ec15
build: use build-locale.sh in all build scripts
3 years ago
SomberNight
7d36f2ba3a
build: follow-up source-only tarballs
3 years ago
yanmaani
9a37184a57
build: create source-only tarball in release.sh
3 years ago
Sander van Grieken
f63df43614
wine: rename freeze_appimage_distro.sh to freeze_containers_distro.sh and
...
adapt build-wine container to Debian+snapshots base
3 years ago
Sander van Grieken
a1975e2449
appimage: add freeze_appimage_distro.sh and adapt Dockerfile to use debian buster base
3 years ago
SomberNight
7e2fab809d
appimage build: better parameterise python version
3 years ago
SomberNight
0c2a885c66
mac build: force using source dist for most of our python dependencies
...
We compile from tar.gz, instead of using pre-built binary wheels from PyPI.
(or if the dep is pure-python, use tar.gz instead of "source-only" wheel)
-----
Some unorganised things below for future reference.
```
$ dsymutil -dump-debug-map dist1/hid.cpython-39-darwin.so
warning: (x86_64) /private/var/folders/1n/zc14m3td0rg4nt0ftklmm7z00000gn/T/pip-install-bm88zvc1/hidapi_cd307bc31ab34252b77d11d6d7212fc5/build/temp.macosx-10.9-x86_64-3.9/hid.o unable to open object file: No such file or directory
warning: (x86_64) /private/var/folders/1n/zc14m3td0rg4nt0ftklmm7z00000gn/T/pip-install-bm88zvc1/hidapi_cd307bc31ab34252b77d11d6d7212fc5/build/temp.macosx-10.9-x86_64-3.9/hidapi/mac/hid.o unable to open object file: No such file or directory
---
triple: 'x86_64-apple-darwin'
binary-path: 'dist1/hid.cpython-39-darwin.so'
...
```
```
$ nm -pa dist1/hid.cpython-39-darwin.so
```
- https://stackoverflow.com/questions/10044697/where-how-does-apples-gcc-store-dwarf-inside-an-executable
- https://github.com/pypa/pip/issues/6505
- https://github.com/pypa/pip/issues/7808#issuecomment-770275723
- https://github.com/NixOS/nixpkgs/pull/91272
- https://github.com/cython/cython/pull/1576
- 9d2ba1611b/Cython/Compiler/ModuleNode.py (L913)
3 years ago
SomberNight
87904e2c7e
win build: force using source dist for some of our python dependencies
...
Instead of using pre-built binary wheels from PyPI.
We should tighten this more (re other requirements-*.txt files),
but there is no C compiler available inside the wine environment atm...
3 years ago
SomberNight
caa6983f81
contrib/{add_cosigner,make_download}: cd to project root
...
to make it agnostic of cwd
3 years ago
SomberNight
bf4482ce1e
(trivial) replace URL in comment to include git hash instead of branch
3 years ago
SomberNight
787dd69282
win build: clear $CONTRIB_WINE/dist between builds
3 years ago
SomberNight
150ebe116a
mac build: maybe fix reproducibility fail (_cbor.cpython-39-darwin.so)
...
vagrants-iMac:electrum vagrant$ ./contrib/osx/compare_dmg dist/electrum-4.3.0-ghost43.dmg /Users/vagrant/Desktop/electrum-4.3.0-thomas1.dmg
[...]
Extracting signatures from release app...
Created mac_extracted_sigs.tar.gz
Applying extracted signatures to unsigned app...
Done. .app with sigs applied is at: /tmp/electrum_compare_dmg/signed_app
++ diff -qr /tmp/electrum_compare_dmg/signed_app /tmp/electrum_compare_dmg/dmg2
+ diff='Files /tmp/electrum_compare_dmg/signed_app/Electrum.app/Contents/MacOS/cbor/_cbor.cpython-39-darwin.so and /tmp/electrum_compare_dmg/dmg2/Electrum.app/Contents/MacOS/cbor/_cbor.cpython-39-darwin.so differ'
+ diff='diff errored'
+ set +x
diff errored
DMGs do *not* match.
failure
user@user-VirtualBox:~/wspace/tmp$ vbindiff comp/signed_app/_cbor.cpython-39-darwin.so comp/dmg2/_cbor.cpython-39-darwin.so
comp/signed_app/_cbor.cpython-39-darwin.so
0000 6AC0: 00 5F 50 79 49 6E 69 74 5F 5F 63 62 6F 72 2E 6D ._PyInit __cbor.m
0000 6AD0: 6F 64 65 66 00 5F 43 62 6F 72 4D 65 74 68 6F 64 odef._Cb orMethod
0000 6AE0: 73 00 2F 70 72 69 76 61 74 65 2F 76 61 72 2F 66 s./priva te/var/f
0000 6AF0: 6F 6C 64 65 72 73 2F 35 36 2F 64 38 36 70 35 39 olders/5 6/d86p59
0000 6B00: 37 31 31 67 7A 63 62 38 73 31 71 37 31 36 78 31 711gzcb8 s1q716x1
0000 6B10: 6C 63 30 30 30 30 67 6E 2F 54 2F 70 69 70 2D 69 lc0000gn /T/pip-i
0000 6B20: 6E 73 74 61 6C 6C 2D 36 6D 69 36 68 6C 75 65 2F nstall-6 mi6hlue/
comp/dmg2/_cbor.cpython-39-darwin.so
0000 6AC0: 00 5F 50 79 49 6E 69 74 5F 5F 63 62 6F 72 2E 6D ._PyInit __cbor.m
0000 6AD0: 6F 64 65 66 00 5F 43 62 6F 72 4D 65 74 68 6F 64 odef._Cb orMethod
0000 6AE0: 73 00 2F 70 72 69 76 61 74 65 2F 76 61 72 2F 66 s./priva te/var/f
0000 6AF0: 6F 6C 64 65 72 73 2F 37 68 2F 70 33 30 7A 5F 74 olders/7 h/p30z_t
0000 6B00: 79 31 35 30 31 32 70 66 5F 33 64 79 78 62 73 39 y15012pf _3dyxbs9
0000 6B10: 33 34 30 30 30 30 67 6E 2F 54 2F 70 69 70 2D 69 340000gn /T/pip-i
0000 6B20: 6E 73 74 61 6C 6C 2D 30 68 64 39 63 35 6D 65 2F nstall-0 hd9c5me/
related: https://github.com/pypa/pip/issues/6505
3 years ago
ThomasV
4fcc5a580a
prepare release 4.3.0: update version.py and locale
3 years ago
SomberNight
752b37a03b
dependencies: bundle older hidapi in binaries
...
closes https://github.com/spesmilo/electrum/issues/7738
3 years ago
gruve-p
bc5b5eb0b1
appimage: Bump git
...
https://launchpad.net/ubuntu/+source/git/1:2.17.1-1ubuntu0.12
3 years ago
gruve-p
e50db4bf2b
appimage: update libssl-dev libssl1.1 openssl
...
Windows image: update gnupg2 dirmngr
3 years ago
SomberNight
57b17d13ac
android build: make building testnet apk easier
...
Just uncomment line 53 in make_apk, and you get a testnet apk that can co-exist with your mainnet install.
No need to do a clean rebuild of ".buildozer/" either.
3 years ago
SomberNight
e72f575eea
android build: factor out package name ("org.electrum.electrum")
...
to make it easier to change, to make it easy to have a co-existing mainnet and testnet install
(or two mainnet installs, etc)
3 years ago
SomberNight
d79da7a248
android build: (qml) pin new transitive dependencies for reproducibility
3 years ago
SomberNight
bc88e1c328
android build: (qml) bump p4a commit
...
to include single new commit c6e39ae1fb
3 years ago
SomberNight
3d0baf8d00
android build: restore prev "make theming" behaviour
...
- note: "make theming" is kivy-specific, and not needed for the qml gui apk
- note: "make theming" does not run automatically as part of the build scripts,
although it used to in the past. For reproducible builds, the
"electrum/gui/kivy/theming/atlas" git submodule contains the build
artefacts. However, the user is supposed to manually run "make theming"
when changing the atlas/images.
3 years ago
Sander van Grieken
c656b02319
update tip pthon-for-android qt5-wip
3 years ago
Sander van Grieken
3868878be4
filter out more unneeded files for packaging
3 years ago
Sander van Grieken
758a30462e
implement QR code scanning
3 years ago
Sander van Grieken
492f246b9a
qml: add QR code imageprovider using qrcode/PIL
...
adds buildozer 'pillow' recipe to requirements
add initial PoC on qml receive tab
3 years ago
Sander van Grieken
a2fac2e3e3
buildozer: exclude env dir, don't include vs, fs extensions
3 years ago
ThomasV
08154da3b6
add command line parameters to android/build.sh, and use separate .buildozer dirs for kivy and qt5
3 years ago
ThomasV
634a647fb1
android: parameterize GUI framework
3 years ago
ThomasV
49a67a5cd2
build android apk with qt5
...
update requirements file for building PyQt5
3 years ago
yanmaani
04b81d6b82
contrib: add generate_payreqpb2.sh script
3 years ago
yanmaani
2da1859110
build: support OMIT_UNCLEAN_FILES in sdist/build.sh
3 years ago
yanmaani
a7e17ae4ee
build: add OMIT_UNCLEAN_FILES option to make_sdist.sh
3 years ago
yanmaani
45b8f11c68
build: refactor out locale generation into build_locale.sh
3 years ago
SomberNight
0fca35fa40
android build: increase buildozer log level (except on cirrus ci)
4 years ago
SomberNight
bb0db0e3c0
build: incl "frozenlist" dep as pure-python, without C stuff
...
While attempting to reproducibly build the qml android apk, one of the differences
was due to the "frozenlist" dependency (pulled in by aiohttp) - the compiled C parts
were not deterministic. By setting this env var, we can opt-out [0] of all the C
accelerated parts and just use the pure-python implementation. We are already doing
the same for other aiohttp-related packages anyway.
[0]: c2794cac12/setup.py (L7)
4 years ago
Sander van Grieken
8d57129ad6
p4a: update commit ref to head of qt5-wip (fixes cpu count used for build)
4 years ago
gruve-p
29ab90e1b1
appimage: update libssl-dev libssl1.1 openssl ( #7869 )
4 years ago
SomberNight
941db4214c
README: add Windows- & macOS-specific "how to run from source" readmes
...
note: unclear where to put these files... `contrib/build-wine/` and `contrib/osx/`
contain binary-building-related files. maybe we could have a `doc/` folder
if the need for more similar files arise.
atm there are these two, plus maybe `contrib/docker_notes.md`.
4 years ago