Commit Graph

380 Commits

Author SHA1 Message Date
SomberNight
bc35c82619
update submodules 2018-09-04 13:38:49 +02:00
ThomasV
28c49d2c48 update submodules 2018-09-03 15:39:45 +02:00
Peter D. Gray
0bcea80bdf
Support for new hardware wallet: Coldcard
build-wine/deterministic.spec: add Coldcard plugin and ckcc-protocol dependancy

Require version 0.7.2 of ckcc-protocol (window fixes)

Rework import paths to new standards

Updated icons

New minimum version, for latest PSBT constants

Upgrade to final PSBT (BIP 174) standard encoding

Remove log noise

Show bootloader version number as well

Handle case where libraries are missing better

Remove noise about missing packages, for rest of world

Add reference to ckcc-protocol module/data

Remove dead code

Beef up the README more

Slightly better looking

Add version numbers and upgrade firmware feature

Split out DFU support into own file

First pass at adding Coinkite Coldcard hardware wallet to Electrum
2018-08-22 21:43:03 +02:00
SomberNight
db834800c0
wine-build: clarify to use docker for reproducible builds. move parts of readme. 2018-08-15 13:22:24 +02:00
Jean-Christophe Rona
02c30e3d52
Add support for Archos Safe-T mini hardware wallet (#4445)
commit 10c46477f3a6f2fbc0596345511e0994253081eb
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed Jul 25 19:40:05 2018 +0200

    backport changes of trezor plugin

commit 213619e880f709188c1ea6272758896748e681a8
Merge: a855b75b6 6899ca252
Author: Jean-Christophe Rona <jc@rona.fr>
Date:   Wed Jul 25 18:45:19 2018 +0200

    Merge branch 'master' into safe-t-mini

commit a855b75b6f5af5f707c4680d0bac79eb66a85ace
Author: Jean-Christophe Rona <rona@archos.com>
Date:   Wed Jul 25 18:37:12 2018 +0200

    Safe-T: Switch to safet 0.1.3 to remove the rlp dependency

commit 9bee44ca33289158c91c03d47dec45de6577f17b
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed Jul 18 14:01:10 2018 +0200

    safe-t: bump min fw to 1.0.5

    older fw has a bug when restoring from seed

commit 01816607e8ba308cb5cff96b5fb844e4f6b8fcc1
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed Jul 18 13:57:17 2018 +0200

    safe-t: fix rlp version to avoid eth stuff

commit 430206bea1fa10b762ff953fbc7652ce0d0e939d
Merge: a999ae266 b4b862b0c
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed Jul 18 13:29:41 2018 +0200

    Merge branch 'master' into pr/4445

commit a999ae266f499f180946d53d4e860cc871d562ab
Author: Jean-Christophe Rona <rona@archos.com>
Date:   Tue Jun 19 14:18:03 2018 +0200

    Safe-T mini: Remove supported coins

    This is not really useful there.

commit 7922df1031b2c4b132f7f9c90232480b5bf9585c
Author: Jean-Christophe Rona <rona@archos.com>
Date:   Tue May 29 16:43:37 2018 +0200

    Safe-T mini: Add support for the Safe-T mini
2018-07-25 20:11:04 +02:00
SomberNight
6899ca2527
docker-wine: update a package version
the previous version is no longer available. this suggests that it's difficult to reproduce old builds.
not sure about long term solution.
2018-07-24 20:23:33 +02:00
SomberNight
281805a0a4
linux sdist: 'typing' was not included, which is needed on py3.4
not making typing conditioned on py version as then freeze_packages would not pick it up.
2018-07-20 16:38:18 +02:00
SomberNight
801d3113ab
wine build: remove pgp.mit.edu from keyservers
sometimes slow, and does not return all the pubkeys asked for (so build fails)
2018-07-19 14:53:04 +02:00
SomberNight
cb6bde49b4
fix some wine build failures on branches/forks 2018-07-19 14:36:30 +02:00
Janus
1e715113ab remove pbkdf2 dependency, use stdlib instead 2018-07-18 14:34:59 +02:00
Marcel O'Neil
21204fc552
localization: fix download link + badge 2018-07-17 22:09:04 -04:00
ThomasV
88eb2390e6
Merge branch 'master' into docker 2018-07-15 11:13:51 +02:00
Janus
097ac144d9 file reorganization with top-level module 2018-07-13 14:01:37 +02:00
SomberNight
5d462f9555
win binaries: bump python version to 3.6.6 2018-07-12 18:33:43 +02:00
SomberNight
e3d8edd0a0
rerun freeze packages 2018-07-12 18:33:43 +02:00
SomberNight
0ddbd2e575
restrict PyQt version to <5.11 for binaries, as 5.11 raises min MacOS version to 10.11
see spyder-ide/qtpy#155
2018-07-12 18:33:42 +02:00
Filip Gospodinov
73fee2fefa build-wine: allow local testing
Before, it was only possible to test commits that are
on Github (pull request or merged). Now, changes can be
tested locally too.

This introduces the risk that a release could be built
containing uncommitted changes which by definition breaks
deterministic builds. Fortunately, this will always be
detected because the version string is created using
`git describe --tags --dirty`.

Also, retire $TARGET variable because it decouples the
build scripts from the commit revision to be built. This
is a problem for deterministic  builds.
2018-07-10 13:33:46 +02:00
SomberNight
586aee45eb
fix #4508: pin down wine deps in docker win build 2018-07-09 17:52:02 +02:00
Filip Gospodinov
dc6fb04ffe docker: simplify README.md (#4521) 2018-07-09 14:50:37 +02:00
Filip Gospodinov
5fde89b689 Dockerfile: don't suppress error message (#4509)
The `-qq` flag will suppress helpful output in case
of an error.
2018-07-06 18:26:18 +02:00
ThomasV
186f9f09b7 sign.sh: rm signed dir 2018-07-02 09:19:02 +02:00
ThomasV
fa4d7a47f8 add tgz and upload script to contrib 2018-07-01 15:04:27 +02:00
SomberNight
2d29c9313f
docker windows build: fix missing translations 2018-06-30 18:56:50 +02:00
SomberNight
bb8a6120af
wine build: try multiple keyservers as in tianon/gosu#35 2018-06-30 17:12:34 +02:00
SomberNight
38c97c306a
wine build - unsign.sh: a bit cleaner output; and no assertion failure for setup.exe 2018-06-30 15:55:33 +02:00
ThomasV
fe16af2ffa fix diff 2018-06-30 14:32:56 +02:00
ThomasV
7dfd3c4f7f fix hardcoded version number 2018-06-30 14:09:33 +02:00
ThomasV
7ac402c224 unsign: fetch signed files with wget 2018-06-30 14:02:06 +02:00
ThomasV
0119ab9ee1 winbuilds: update README. Do not sign in unsign.sh 2018-06-30 13:22:46 +02:00
Lucas Betschart
d467a5a8ec Pyinstaller: Clean cache before building
Clean PyInstaller cache and remove temporary files before building.
2018-06-30 13:03:05 +02:00
ThomasV
fa6c213d5f windows builds: sign the windows-signed files with gpg 2018-06-30 10:38:01 +02:00
SomberNight
068b6acf79
wine build: use docker to (try to) have reproducible builds 2018-06-29 18:13:11 +02:00
ThomasV
8f25e147fd update icons submodule 2018-06-29 13:43:26 +02:00
ThomasV
7feba2a200 update commit number of locales submodule 2018-06-29 13:18:03 +02:00
ThomasV
31eed35a0a add apk release script 2018-06-29 11:09:15 +02:00
ThomasV
d58c069336 read apk version number from version.py 2018-06-29 10:45:34 +02:00
ThomasV
3293b36e0f fix unsign script 2018-06-29 09:07:23 +02:00
root
240dc888ec Add script to strip signature from signed binary 2018-06-29 08:57:24 +02:00
Johann Bauer
95bbd9593b Add script to check and sign executables 2018-06-29 08:57:24 +02:00
SomberNight
d293cc0d53
wine build: towards deterministic libsecp - strip debug symbols
smaller dll and no longer depends on build path
2018-06-28 22:05:13 +02:00
SomberNight
80178f9a56
wine build: libsecp deterministic on given machine
but not yet across machines
2018-06-28 21:29:06 +02:00
SomberNight
051217d061
wine build: update readme 2018-06-28 20:01:51 +02:00
ThomasV
86209e81b9 win builds: call 'git describe' before we add unstaged files to the repo 2018-06-28 19:55:26 +02:00
SomberNight
ca7e5575bf
option to set a dark theme for Qt
qdarkstyle is now a new dependency - note that it is only for qt and qt is not strictly a dependency, but it is pure python and relatively small
2018-06-25 16:46:01 +02:00
SomberNight
00db9c4552
rerun freeze_packages
and remove rlp from requirements-hw as trezor no longer references it
2018-06-15 13:05:35 +02:00
SomberNight
56a399e1da
fix revealer for linux distributables; and small clean-up 2018-06-10 22:12:23 +02:00
Johann Bauer
4a65db54c9 Travis: Fix Windows build from PRs 2018-05-30 22:29:51 +02:00
Johann Bauer
c76375de91
Build libsecp256k1 2018-05-30 21:47:28 +02:00
Johann Bauer
46fcf686b1 Travis: Check if icons and locales are up to date on release 2018-05-29 00:00:37 +02:00
SomberNight
483a2a40cd
wine-build: fetch pull requests from repo if can't find commit
follow-up 25089aa9c2
2018-05-27 04:25:11 +02:00
SomberNight
65601e9ec6
build and include libsecp256k1 in windows binaries 2018-05-25 16:04:29 +02:00
Johann Bauer
64438573b1
Follow-up 354c737: Fix macOS build 2018-05-13 22:14:48 +02:00
root
354c737ce0 Track icons and locale version in submodule 2018-05-13 22:06:25 +02:00
SomberNight
a459eea018
follow-up prev: specify rlp version
python-trezor depends on rlp (an ethereum package) that we do not need..
Newer versions of rlp introduced several new dependencies, which is even more stuff we don't need.
Some of these new dependencies are even a trouble to build on Wine, as they need vc++, and they don't distribute binary builds.

related #4338
2018-05-05 01:12:47 +02:00
SomberNight
46a0dbc9d9
rerun freeze_packages
closes #4338
2018-05-04 21:22:00 +02:00
SomberNight
1ed3e0cad6
fix #4276
-aos: Skip over existing files without overwriting
-aoa: This switch overwrites all destination files
2018-04-18 20:50:56 +02:00
Dimitris Apostolou
989c9c2b55 Fix typos 2018-04-15 20:34:40 +02:00
Filip Gospodinov
6cf334244a contrib: detect builds with uncommitted changes
The `--dirty` flag causes `git describe` to append
`-dirty` to the version string it outputs. This is
useful to detect if a build was - intentionally or
not - created with uncommitted changes.

https://git-scm.com/docs/git-describe#git-describe---dirtyltmarkgt
2018-04-13 16:59:26 +02:00
Johann Bauer
ee2a1f52a1
Bump cryptodome version 2018-04-08 23:27:06 +02:00
SomberNight
7b50790584
do not raise BaseException 2018-04-07 17:10:30 +02:00
SomberNight
10a0b0ad7f
make_packages was failing
error was:
In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
    setuptools from 04a0b689d3/setuptools-39.0.1-py2.py3-none-any.whl (md5)=ca299c7acd13a72e1171a3697f2b99bc (from protobuf==3.5.2.post1->-r ./contrib/deterministic-build/requirements.txt (line 21))
2018-04-01 22:53:02 +02:00
SomberNight
bfccfc7e74
follow-up 70d827b984 2018-04-01 18:41:17 +02:00
Johann Bauer
c7c43d2336
Change Python version in pyinstaller spec file 2018-04-01 18:03:44 +02:00
Johann Bauer
831dda0fcb
Wine build: Revert to Python 3.5 and download if file was changed 2018-04-01 17:52:31 +02:00
Johann Bauer
70d827b984
Add a script that finds dependencies for other OSs
This is used to make sure we also freeze versions for
packages that will only be used on Windows or OS X, while
the freezing script is most likely only be run on Linux.
2018-03-31 22:19:09 +02:00
Johann Bauer
14aa7c0a3b
Follow-up ae80fb4f 2018-03-31 18:33:45 +02:00
Johann Bauer
ae80fb4f97
Follow-up 6afe71fe 2018-03-31 18:22:23 +02:00
Johann Bauer
6afe71fe0e
Follow-up 3c28e3491 2018-03-31 18:12:50 +02:00
Johann Bauer
3c28e34919
Check package hashes when generating binaries 2018-03-31 17:49:38 +02:00
SomberNight
97c295924a mac build script: update libusb 2018-03-31 00:23:41 +02:00
SomberNight
9a12022537 windows build script: update python, nsis, libusb 2018-03-31 00:14:26 +02:00
SomberNight
deab75fe20 windows build script: cache pip
previously pip was caching into the wine directory, which we delete and recreate on every run
2018-03-31 00:11:57 +02:00
SomberNight
d213a7cd4f update frozen dependencies 2018-03-30 22:55:46 +02:00
SomberNight
79efc54608 freeze_packages (partial): up btchip-python 2018-03-27 21:36:39 +02:00
ThomasV
6fd3d07b4b osx builds: use version number from Info.plist 2018-03-27 17:31:44 +02:00
ThomasV
553006c7e5 follow-up previous commit 2018-03-27 16:51:39 +02:00
Johann Bauer
f854232837 Add script to build dmg on Linux 2018-03-27 15:22:06 +02:00
ThomasV
858a39571e
Merge pull request #4121 from Chuongv/updateDocForOSX
Update doc for OSX build
2018-03-22 12:28:55 +01:00
Johann Bauer
a02bd2c183
Travis: Make Windows build more reliable by trying different key servers 2018-03-15 14:00:02 +01:00
Johann Bauer
7e6fba0513
Make generated .app deterministic 2018-03-13 23:38:54 +01:00
Johann Bauer
79edd2dbf1
Fix crowdin upload 2018-03-12 16:58:14 +01:00
Chuong Vu
20a881b6a4 Update doc for OSX build
Avoids the confusion that I just had..
2018-03-11 18:51:58 -07:00
Johann Bauer
92a701b97a Follow-up 2915cb98b2 2018-03-10 00:06:19 +01:00
Johann Bauer
2915cb98b2 Follow-up e890ec02d 2018-03-09 23:22:15 +01:00
Johann Bauer
e890ec02d5 Pass all possible files to xgettext 2018-03-09 23:17:39 +01:00
Johann Bauer
eab5bcf62f Find files to translate automatically 2018-03-09 19:15:05 +01:00
Johann Bauer
084b1e86ef Add missing files to localization 2018-03-09 18:59:15 +01:00
Johann Bauer
7ec2bcd70f
Use internal GPU on macOS
Closes: #4030
2018-03-06 11:55:43 +01:00
SomberNight
bb5e195494 update frozen dependencies
fix #4031
2018-03-06 06:09:13 +01:00
Johann Bauer
2bde686752
Windows Build: Create tmp dir 2018-03-05 17:16:30 +01:00
Johann Bauer
10057b18de
Cache dependencies for Travis build
Also: * Move temporary directory to /tmp
      * Remove files with wrong hash (so we don't have to remove them manually)
2018-03-03 19:58:31 +01:00
Johann Bauer
83f2dc44de Add websocket library to binary for Ledger 2FA support
Closes: #2433
2018-03-03 19:37:32 +01:00
Lastrellik
6079105b2c Revert to using == instead of = 2018-03-01 11:36:36 -07:00
Lastrellik
6706a87e53 Create file caching system 2018-02-28 08:51:56 -07:00
Johann Bauer
6ab1ba52b0
Remove pyblake2 workaround 2018-02-27 12:35:06 +01:00
Jason Bruderer
59e457d22c Update build-wine's README.md (#3972)
* Update build-wine's README.md
2018-02-26 12:17:55 +01:00
SomberNight
a6fe73ad72 wine build: "exit 1" on hash/sig failure 2018-02-25 18:54:34 +01:00
ThomasV
050f9b7d3a
Merge branch 'master' into zbar_windows 2018-02-23 16:04:34 +01:00
Johann Bauer
e7c3712181 Add libusb dylib to binary so Trezor will work
Closes: #3946
2018-02-21 14:13:55 +01:00
Johann Bauer
363f3766d7 Add Qt Windows style to the binary
Closes: #3813
2018-02-21 02:00:21 +01:00
Johann Bauer
78a9424c48 Add libusb dll to Windows binary
So that Trezor still works...

Closes: #3931
2018-02-21 01:40:37 +01:00
Johann Bauer
fcae5eaa92 Workaround for PyBlake2 build issues 2018-02-21 00:37:32 +01:00
Johann Bauer
e512e9c0e8 Simplify pyinstaller installation 2018-02-15 22:23:10 +01:00
Calin Culianu
6b09d478a5 Fixup to get PyQt5 5.10 working ok and looking right on Mac 2018-02-15 16:51:30 +01:00
Neil Booth
cc19de9db3 Parameterise the OSX builder 2018-02-13 13:45:20 +01:00
Johann Bauer
476ce3f1db
Follow-up 240ecee
We don't care if some other pyinstaller is installed
2018-02-12 23:40:01 +01:00
Johann Bauer
240ecee6ce
macOS build: Prefer our pyinstaller over system installed 2018-02-12 23:31:32 +01:00
Johann Bauer
afa0168e14
Add new requirements file for binaries in contrib 2018-02-11 16:59:07 +01:00
SomberNight
30a43189fc make zbar install silent 2018-02-08 06:08:04 +01:00
SomberNight
f4363e7967 zbar for windows 2018-02-08 05:56:54 +01:00
ThomasV
146f2dd568
Merge pull request #3814 from bauerj/macos-build
Update macOS build
2018-02-07 17:14:29 +01:00
SomberNight
aaa0ee75b7 make freeze_packages.sh cwd independent. update requirements-hw.txt. re-run freeze_packages.sh. 2018-02-07 16:54:03 +01:00
Johann Bauer
0f40c14792 Use requirements files 2018-02-03 13:05:20 +01:00
Johann Bauer
b9fa89ec19 Update macOS build 2018-02-03 13:05:20 +01:00
ThomasV
6e4774870a
Merge pull request #3604 from SomberNight/freeze_hw_wallet_deps
freeze hw wallet dependencies into separate file
2018-02-03 12:37:15 +01:00
SomberNight
964e06dd10 use pywin32-ctypes instead of pypiwin32
pypiwin32 might be going away for pywin32 at some point; and while looking into this I've found that pywin32-ctypes should be enough for our needs
2018-01-31 22:08:09 +01:00
SomberNight
0693837538 freeze hw wallet dependencies into separate file. update versions using freeze_packages.sh. introduce "hardware" setuptools extra. 2018-01-30 22:10:03 +01:00
Johann Bauer
ed686f9e05 Fix base directory for OS X spec file 2018-01-30 14:42:19 +01:00
ghost43
182467445f
Merge pull request #3750 from lzsaver/keyserver
Add default keyserver (prepare-wine.sh)
2018-01-25 22:11:29 +01:00
Alexx Saver
18f07464c1
Added default keyserver
Notice: GPG will use hkp://keys.gnupg.net anyway if there is no config.
2018-01-24 12:40:32 +04:00
Alexx Saver
9ceaac6310 Use python3 for virtualenv 2018-01-23 17:55:25 +01:00
Alexx Saver
20443aa068 Follow-up fe54ce9 2018-01-22 21:00:24 +01:00
Alexx Saver
fe54ce946c Fixed rm -rf
Notice: it is unsafe to do rm -rf ${variable}/path/* without checking the variable, quotes are also required.
2018-01-21 15:51:40 +01:00
SomberNight
d83d927781 include servers_testnet.json and checkpoints_testnet.json in every binary 2017-12-27 14:21:05 +01:00
Johann Bauer
bea62865d2 Allow to build older commits 2017-12-12 23:07:07 +01:00
ThomasV
73cb6a8735 make_packages: add packages to the root directory 2017-12-12 12:34:30 +01:00
ThomasV
44a83c2401 read checkpoints file in NetworkConstants, add it to setup.py 2017-12-12 11:10:50 +01:00
ThomasV
a4e89e822a
Merge pull request #3495 from bauerj/testnet-shortcut
Windows Installer: Add shortcut to testnet mode
2017-12-11 19:46:36 +01:00
Johann Bauer
b2cbdfb042 Windows Installer: Add shortcut to testnet mode 2017-12-10 19:10:26 +01:00
Johann Bauer
4f747e78e5 Make setup.exe differ less 2017-12-10 18:51:03 +01:00
Johann Bauer
43bb9c566f
Add instruction to install dirmngr to Wine README
Closes #3454
2017-12-06 18:12:02 +01:00
Johann Bauer
307503fb97 Make build timezone independent 2017-11-29 23:19:12 +01:00
ThomasV
5158799689 fix windows build script: pushd and popd require bash 2017-11-29 06:52:12 +01:00
ThomasV
8b66d7c8ae windows builds: set timestamps before calling makensis 2017-11-28 18:52:36 +01:00
ThomasV
b9d8b2a571 windows: build portable version without patching the source 2017-11-28 18:21:59 +01:00
Johann Bauer
5778102acc Add script for deterministic builds 2017-11-28 00:32:38 +01:00
ThomasV
78400478fa disable python bytecode during execution of pyinstaller 2017-11-27 20:53:36 +01:00
ThomasV
1eab1385e9 fix names (follow-up previous commit) 2017-11-27 19:56:39 +01:00
ThomasV
c8818cca05 rename file 2017-11-27 19:46:22 +01:00
ThomasV
67c561e4cd windows builds: fetch locale files from github repo 2017-11-27 19:31:48 +01:00
Johann Bauer
957178217c Save dependency versions in repo 2017-11-26 23:22:07 +01:00
SomberNight
6e99c15c5c windows binaries were missing servers_testnet.json 2017-11-17 18:14:17 +01:00
ThomasV
f97e81252d windows builds: download icons_rc.py from dedicated repo, because pyrcc5 is not deterministic 2017-11-13 14:22:37 +01:00
Justin Turner Arthur
857eb4ac1d Remove unused imports. Explicitly import a few deep imports. 2017-11-13 02:28:00 -06:00
ThomasV
8c84b349b8
Merge pull request #3276 from SomberNight/file_io_with_open
file i/o: use 'with' keyword
2017-11-13 09:23:21 +01:00
ThomasV
c8a2ff15b8 install patched pyinstaller from my own repo 2017-11-12 20:29:19 +01:00
SomberNight
c65d01ea96 file i/o: use 'with' keyword 2017-11-12 14:33:46 +01:00
ThomasV
8fcf1656d3 fix typo 2017-11-11 18:12:51 +01:00
ThomasV
3f18884dcd fix previous commit 2017-11-11 18:11:14 +01:00
ThomasV
db8febea15 osx: parameters for Info.plist 2017-11-11 17:59:47 +01:00