From 9fd46398de3be9418f5882e49698c3bd6227a6c3 Mon Sep 17 00:00:00 2001 From: geho2 Date: Fri, 22 May 2020 16:14:23 +0200 Subject: [PATCH] Updated build scripts --- wallet/make_dist.bat | 8 +++++++- wallet/make_dist.sh | 2 +- wallet/make_dist_mac.sh | 2 +- wallet/make_dist_nuitka.bat | 7 +++++++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/wallet/make_dist.bat b/wallet/make_dist.bat index 514254a..101c7ee 100755 --- a/wallet/make_dist.bat +++ b/wallet/make_dist.bat @@ -4,13 +4,19 @@ del /f /s /q build 1>nul rmdir /s /q build copy wallet.py TornadoBismuthWallet.py -pyinstaller --hidden-import tornado.locale --hidden-import aiohttp --hidden-import requests_oauth2 --onefile --icon=favicon.ico TornadoBismuthWallet.py +pyinstaller --hidden-import tornado.locale --hidden-import aiohttp --hidden-import requests_oauth2 --hidden-import six --onefile --icon=favicon.ico TornadoBismuthWallet.py robocopy locale dist/locale /S /E *.mo mkdir dist/themes robocopy themes/material dist/themes/material /S /E robocopy themes/common dist/themes/common /S /E robocopy crystals dist/crystals /S /E +REM Copy libsecp256k1.dll to dist directory, then +REM in cffi\app.py def _load_backend_lib(backend, name, flags): +REM if "libsecp256k1" in name: +REM path = "libsecp256k1.dll" +REM else: +REM raise OSError(msg) REM see https://nsis.sourceforge.io/Main_Page , make installer from zip REM Or inno setup https://cyrille.rossant.net/create-a-standalone-windows-installer-for-your-python-application/ diff --git a/wallet/make_dist.sh b/wallet/make_dist.sh index 358b174..9f81671 100755 --- a/wallet/make_dist.sh +++ b/wallet/make_dist.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash cp wallet.py TornadoBismuthWallet.py -pyinstaller --hidden-import tornado.locale --hidden-import aiohttp --hidden-import requests_oauth2 --onefile --icon=favicon.ico TornadoBismuthWallet.py +pyinstaller --hidden-import tornado.locale --hidden-import aiohttp --hidden-import requests_oauth2 --hidden-import six --onefile --icon=favicon.ico TornadoBismuthWallet.py cp -r locale dist/locale mkdir dist/themes cp -r themes/material dist/themes/material diff --git a/wallet/make_dist_mac.sh b/wallet/make_dist_mac.sh index f0a52b2..c390fbd 100755 --- a/wallet/make_dist_mac.sh +++ b/wallet/make_dist_mac.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash cp wallet.py TornadoBismuthWallet.py -pyinstaller --hidden-import tornado.locale --hidden-import aiohttp --hidden-import requests_oauth2 --onefile --icon=favicon.ico TornadoBismuthWallet.py +pyinstaller --hidden-import tornado.locale --hidden-import aiohttp --hidden-import requests_oauth2 --hidden-import six --onefile --icon=favicon.ico TornadoBismuthWallet.py cp -R locale dist/locale cp -R crystals dist/crystals cp -R modules dist/modules diff --git a/wallet/make_dist_nuitka.bat b/wallet/make_dist_nuitka.bat index 2ff7e84..b0c8e9a 100644 --- a/wallet/make_dist_nuitka.bat +++ b/wallet/make_dist_nuitka.bat @@ -14,6 +14,13 @@ robocopy themes/material dist/themes/material /S /E robocopy themes/common dist/themes/common /S /E robocopy crystals dist/crystals /S /E +REM Copy libsecp256k1.dll to dist directory, then +REM in cffi\app.py def _load_backend_lib(backend, name, flags): +REM if "libsecp256k1" in name: +REM path = "libsecp256k1.dll" +REM else: +REM raise OSError(msg) + REM see https://nsis.sourceforge.io/Main_Page , make installer from zip REM Or inno setup https://cyrille.rossant.net/create-a-standalone-windows-installer-for-your-python-application/ REM or https://pynsist.readthedocs.io/en/latest/index.html