1
0
Commit Graph

82 Commits

Author SHA1 Message Date
accumulator
d51ee07a81 use debian makensis instead of windows makensis executable through wine (#8057) 2022-11-04 20:31:01 +00:00
SomberNight
b5900eae98 contrib: reformat most shell scripts
Mostly just indentations.
For consistency, to conform to .editorconfig.
2022-09-27 14:55:22 +00:00
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
```
2022-08-29 15:22:43 +00:00
SomberNight
c2b5e3ec15 build: use build-locale.sh in all build scripts 2022-08-16 19:06:47 +00:00
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...
2022-08-06 06:43:31 +02:00
SomberNight
98d32f41d5 build: (reproducibility) always uses "pip install" with "--no-build-isolation"
fixes https://github.com/spesmilo/electrum/issues/7737
fixes https://github.com/spesmilo/electrum/issues/7736
related 8559d1eb72
2022-03-26 02:45:47 +01:00
SomberNight
0df8392c86 build: rm need for sudo in most places; and do not run as root
This includes two logically separate changes:
- on the host, try not to require sudo when running the build scripts
    - namely when interacting with the docker daemon, this requires
      the unix user on the host to be part of the `docker` group
    - this solves part of https://github.com/spesmilo/electrum/issues/7602
- while running inside the docker containers, do not run as root
    - this means that e.g. files created in mounted folders should
      no longer be owned by root on the host
    - there is some code duplication involved here - not sure
      how it could be deduped.
2022-03-03 19:24:18 +01:00
SomberNight
659c00e06b mac build: don't create __pycache__ folders
The .pyc files would get created when a .py module is imported,
which is done during the build for some source files by pyinstaller
(when it analyses imports).

I considered setting PYTHONDONTWRITEBYTECODE=1 in build_tools_util.sh,
to apply to all builds, but am not sure how it would affect the Android build,
where we actually want .pyc files included in the apk.
2021-07-12 18:07:31 +02:00
SomberNight
c23fca37d4 build: clarify which locale files are included
related: 2cb4e56be3
2021-03-31 17:00:39 +02:00
SomberNight
41233a4bc7 windows build: minor clean-up 2021-03-07 22:58:44 +01:00
SomberNight
dded25f398 windows build: cache pip downloads 2021-03-07 22:12:26 +01:00
SomberNight
b0230f6a4b build: fix win/appimage binaries following jsonrpc dep-removal
follow-up #6220
2020-06-11 05:37:52 +02:00
SomberNight
4cec098d2d build: create a standalone build script for libsecp256k1
heavily based on Electron-Cash/Electron-Cash@eda015908e
2020-02-11 16:48:24 +01:00
SomberNight
b560bc92cc windows build: maybe fix reproducibility (jsonschema-*.dist-info) 2020-01-22 16:28:51 +01:00
SomberNight
7c090f92ce binaries: use "--no-dependencies" option for pip install
All (incl indirect) dependencies are already listed in deterministic-build/requirements*.txt.
This option makes it easier to manually rm a dependency from that list for e.g. testing.
2020-01-10 19:01:32 +01:00
SomberNight
c8e2653690 wine build: pin build dependencies
"pip install pyinstaller" was "silently" grabbing unpinned dependencies
2019-08-09 19:05:32 +02:00
SomberNight
61bf5ce59a windows build: calculate COFF checksum ourselves
closes #5504
2019-07-10 23:44:51 +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
SomberNight
5ed6a68d8c update make_locale doc references, and small nits 2019-07-03 17:42:40 +02:00
SomberNight
423d44bcaf build-wine: some clean-up. cache downloads. better status messages 2019-07-01 20:18:30 +02:00
SomberNight
31ba440d1c build-wine: print some text before "pip install" 2019-06-23 03:09:05 +02:00
SomberNight
add3b36f32 build: replace remaining "python setup.py install" with "pip install" 2019-02-02 08:07:48 +01:00
SomberNight
16bac5fd73 rm qt icons file
so we don't need pyrcc5, which is not deterministic,
and so we don't need the submodule for the icons

based on electrumsv/electrumsv@bf8802c2ea
2019-02-01 20:15:28 +01:00
SomberNight
3ca1b710d6 build: use sha256sum instead of md5sum 2019-01-31 17:01:00 +01:00
SomberNight
762082e13d wine build: dedupe PYTHON_VERSION 2018-12-09 07:17:37 +01:00
Filip Gospodinov
f05f3b430a build-wine: fix locale path
`$i` already contains `locale/`.
2018-09-14 14:37:14 +02:00
ThomasV
96fb75ffc6 Merge pull request #4685 from toxeus/locale
build-wine: avoid untracked changes in submodule
2018-09-06 17:59:25 +02:00
Filip Gospodinov
6c7bfe613f contrib: remove git describe workaround (#4683)
`git describe` fails if no tag can be found, leading
to the whole build script to fail. This is not always
desired. To prevent `git describe` from failing in
this case the `--always` flag can be passed which
causes a short commit hash to be output when a tag
is not present.
2018-09-04 22:32:46 +02:00
Filip Gospodinov
9220545e60 build-wine: avoid untracked changes in submodule
The locale output file can simply be output in the folder
where it's actually needed. This also saves a recursive copy.

This makes `.gitignore` in the electrum-locale submodule
obsolete.
2018-09-04 16:53:53 +02:00
SomberNight
cb6bde49b4 fix some wine build failures on branches/forks 2018-07-19 14:36:30 +02: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
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
2d29c9313f docker windows build: fix missing translations 2018-06-30 18:56:50 +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
86209e81b9 win builds: call 'git describe' before we add unstaged files to the repo 2018-06-28 19:55:26 +02:00
Johann Bauer
4a65db54c9 Travis: Fix Windows build from PRs 2018-05-30 22:29:51 +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
root
354c737ce0 Track icons and locale version in submodule 2018-05-13 22:06:25 +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
c7c43d2336 Change Python version in pyinstaller spec file 2018-04-01 18:03:44 +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
9a12022537 windows build script: update python, nsis, libusb 2018-03-31 00:14:26 +02:00
Johann Bauer
2bde686752 Windows Build: Create tmp dir 2018-03-05 17:16:30 +01:00
Johann Bauer
6ab1ba52b0 Remove pyblake2 workaround 2018-02-27 12:35:06 +01:00
Johann Bauer
fcae5eaa92 Workaround for PyBlake2 build issues 2018-02-21 00:37:32 +01:00