Skip to content

Commit

Permalink
Updated build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
geho2 committed May 22, 2020
1 parent d4e2d55 commit 9fd4639
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
8 changes: 7 additions & 1 deletion wallet/make_dist.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion wallet/make_dist.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion wallet/make_dist_mac.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions wallet/make_dist_nuitka.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9fd4639

Please sign in to comment.