SomberNight
52b03e1f78
win build: use of debian unstable snapshots needs check-valid-until=no
see https://snapshot.debian.org/
> To access snapshots of suites using Valid-Until that are older than a dozen days, it is necessary to ignore the Valid-Until header within Release files, in order to prevent apt from disregarding snapshot entries ("Release file expired"). Use aptitude -o Acquire::Check-Valid-Until=false update or apt-get -o Acquire::Check-Valid-Until=false update for this purpose.
(thanks to Axel Gembe for pointing this out)
2 years ago
SomberNight
846c073ee8
Revert "wine build: build win-iconv-mingw-w64-dev, instead of using debian sid"
This reverts commit b8240bec3e
.
Looks like the win-iconv build is not deterministic...
Reverting this for now, will have to debug later.
2 years ago
SomberNight
10a2a846ef
build: update pinned protobuf (partial rerun freeze_packages)
closes https://github.com/spesmilo/electrum/pull/7990
2 years ago
SomberNight
77c2d4ec06
mac build: note in README: pyinstaller picks up extraneous brew pkgs
ThomasV had libffi installed via brew, and this side-effected the built electrum dmg.
`('libffi.8.dylib', '/usr/local/opt/libffi/lib/libffi.8.dylib', 'BINARY')`
this was the cause of 019d213325
2 years ago
SomberNight
0abecffe6d
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)
2 years ago
SomberNight
a143d05fb9
mac build: bump pyinstaller (4.2 -> 5.3)
2 years ago
SomberNight
b3e869a5de
build win/mac: do not pass custom args to pyinstaller; use envvars
custom args no longer work with pyinstaller 5.0 (see https://github.com/pyinstaller/pyinstaller/issues/6762 )
```
option(s) not allowed:
...
makespec options not valid when a .spec file is given
```
2 years ago
SomberNight
2d458d3b06
(trivial) contrib/build-wine: convert line-endings (CRLF -> LF)
otherwise no-op
2 years ago
SomberNight
89e1bbf4ec
mac build: add message to camera permission prompt, in Info.plist
based on 0b5b5fb228
Co-authored-by: Calin Culianu <calin.culianu@gmail.com>
2 years ago
SomberNight
e39ab1623a
mac build: set minimum system version to 10.13.0 in Info.plist
based on 907e5e7009
This way users get more feedback from the OS when they attempt to launch the app on old macOS.
Co-authored-by: Calin Culianu <calin.culianu@gmail.com>
2 years ago
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.
2 years ago
SomberNight
abec59e17d
mac build: rm unused BUILDDIR
2 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>
2 years ago
SomberNight
65fda1f41d
android build: fix Dockerfile "COPY" instructions
The build context is $PROJECT_ROOT
2 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.
```
2 years ago
Sander van Grieken
46d76f0504
android: adapt Dockerfile to use debian bullseye base
2 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
2 years ago
SomberNight
8b6b85d385
contrib/make_download: add "source-only" tarball
2 years ago
SomberNight
c4c8a7f424
contrib/add_cosigner: add "source-only" tarball
2 years ago
SomberNight
de8745f69f
contrib/add_cosigner: replace old-style format strings with f-strings
2 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
2 years ago
ThomasV
3c5465fc5c
update locale
2 years ago
SomberNight
c2b5e3ec15
build: use build-locale.sh in all build scripts
2 years ago
SomberNight
7d36f2ba3a
build: follow-up source-only tarballs
2 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
2 years ago
Sander van Grieken
a1975e2449
appimage: add freeze_appimage_distro.sh and adapt Dockerfile to use debian buster base
2 years ago
SomberNight
7e2fab809d
appimage build: better parameterise python version
2 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)
2 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...
2 years ago
SomberNight
caa6983f81
contrib/{add_cosigner,make_download}: cd to project root
to make it agnostic of cwd
2 years ago
SomberNight
bf4482ce1e
(trivial) replace URL in comment to include git hash instead of branch
2 years ago
SomberNight
787dd69282
win build: clear $CONTRIB_WINE/dist between builds
2 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
2 years ago
ThomasV
4fcc5a580a
prepare release 4.3.0: update version.py and locale
2 years ago
SomberNight
752b37a03b
dependencies: bundle older hidapi in binaries
closes https://github.com/spesmilo/electrum/issues/7738
2 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