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
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
avirgovi
b5d2b3c512
create chmod aware of XDG_RUNTIME_DIR
closes https://github.com/spesmilo/electrum/pull/7681
related https://github.com/spesmilo/electrum/issues/6334
Co-authored-by: avirgovi <avirgovi@cisco.com>
Co-authored-by: SomberNight <somber.night@protonmail.com>
3 years ago
SomberNight
233d2373df
util: implement is_subpath
2 years ago
ghost43
3c964c9ea0
Merge pull request #7923 from SomberNight/202208_wallet_labels
wallet: add get_label_for_address, and make get_label private
2 years ago
SomberNight
7b095158bf
wallet: add get_label_for_address, and make get_label private
fixes https://github.com/spesmilo/electrum/issues/7919
In the past, when creating payment requests, we keyed them by on-chain address,
and set/saved the msg of the request as label for the address.
Many places in the code were calling wallet.get_label(addr) with the expectation that
relevant payment requests are found and their message/description (if any) is considered.
wallet.get_label(key) is now made private, and instead the explicit non-polymorphic
wallet.get_label_for_{address,rhash,txid} alternatives should be used.
2 years ago
ghost43
9279463fae
Merge pull request #7918 from SomberNight/202208_build_tighten1
mac/win build: `pip install --no-binary :all:` in more places
2 years ago
SomberNight
73ba00d7dd
wallet.restore_wallet_from_text: support creating wallet in-memory
2 years ago
ThomasV
48bb4867a4
fix #7920
2 years ago
ThomasV
e8a8c8c3f1
fix #7921
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
548b7d4b23
(trivial) RELEASE-NOTES: fix some typos
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
ThomasV
db794949ae
update release notes
2 years ago
SomberNight
c421bdaff4
(trivial) qml/qedaemon.py: add missing import
2 years ago
SomberNight
752b37a03b
dependencies: bundle older hidapi in binaries
closes https://github.com/spesmilo/electrum/issues/7738
2 years ago
SomberNight
d4f76143b0
qt ReceiveTabWidget: revert prev, and add frame in a different way
This reverts commit b97d080617
.
2 years ago
SomberNight
b97d080617
qt ReceiveTabWidget: add frame to "help label", and rm some nesting
2 years ago
ThomasV
58b56b3039
receive_tab: use QStackedWidget instead of QTabWidget
2 years ago
poiuty
018a83078c
remove ca.poiuty.com ( #7913 )
2 years ago
ThomasV
a5965933d2
Fix CTNs in should_be_closed_due_to_expiring_htlcs ( fixes #7906 ).
Also fix sending too many fee updates.
Rename lnworker.on_channel_update, that name was misleading.
2 years ago
ThomasV
0c8a828704
follow-up 7dcd8d8dc8
- set minimumHeight of VTabWidget (needed for small window size)
- keep self.tabBar visible, otherwise the widget border is rendered with a gap on linux
- apply stylesheet to both tabTar and surrounding widget
- buttons style: align text left, NoFocus
- on button click: setChecked always True, draw qr code at the end because it is slow
2 years ago
ThomasV
98e6bd6f80
Merge pull request #7909 from SomberNight/202207_qt_receive_tab_macos
Qt receive_tab: fix receive_tabs widget on macOS
2 years ago
ThomasV
a2e059ce7a
receive_tab: workaround qdarkstyle bug
2 years ago
SomberNight
7dcd8d8dc8
Qt receive_tab: fix receive_tabs widget on macOS
QTabWidget with "West" tab pos and horizontal text looks completely broken on macOS
(despite looking good on e.g. Ubuntu GNOME and Windows).
The alternative here looks ok on all three OSes.
fixes https://github.com/spesmilo/electrum/issues/7908
2 years ago
ThomasV
ad9030bd15
labels plugin: handle setting a label to None
2 years ago
ThomasV
cace1b5013
lnwatcher: compare txids instead of tx objects, before calling add_transaction or set_label
2 years ago
Sander van Grieken
3de498907c
qml: delete_wallet and add checks for channels, balance, pending requests
3 years ago
Sander van Grieken
008805d97c
qml: implement initial wallet from master key
3 years ago
Sander van Grieken
e719e70761
qml: fix icon paths
3 years ago
Sander van Grieken
5008cef491
qml: optimize imports
3 years ago
ThomasV
eb9d211378
text GUI: add proper stop method
3 years ago
Sander van Grieken
ae1e7eea4c
qml: make sure the auth_protect decorator finishes when closing Pin dialog without reject/accept
3 years ago
Sander van Grieken
6c21a0ec67
qml: create PasswordField control
3 years ago
Sander van Grieken
e9a1824a77
qml: parent channel open progress dialog to main.qml as it might live longer than OpenChannel
3 years ago
Sander van Grieken
4f3dc7a2cc
qml: fixes
3 years ago
Sander van Grieken
509e0fcc07
qml: initial channel open progress dialog
3 years ago
Sander van Grieken
3b9c009e43
qml: include dialogs in back button navigation
3 years ago
ThomasV
725c70bc4a
text GUI: simplify show_request
3 years ago
Sander van Grieken
33bc35940f
qml: move dialogs out of controls/
3 years ago
Sander van Grieken
a27218dcb7
qml: copy/share the correct data, fix UI issue when no description
3 years ago
ThomasV
43ab4a779a
various updates for the text GUI
3 years ago