Skip to content

Commit

Permalink
added single-file executable
Browse files Browse the repository at this point in the history
  • Loading branch information
8go committed Jun 7, 2017
1 parent 65fdb4a commit ef4f1b1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
VERSION_STR = u'v0.5.2-beta'

# Date of software version
VERSION_DATE_STR = u'May 2017'
VERSION_DATE_STR = u'June 2017'

# default log level
DEFAULT_LOG_LEVEL = logging.INFO # CRITICAL, ERROR, WARNING, INFO, DEBUG
Expand Down
11 changes: 11 additions & 0 deletions singleFileExecutableLinuxCreate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

echo "Requires Python and pip to be installed"
echo "Read: http://www.pyinstaller.org/"
echo "Something similar should work on Windows as well"
echo "Read: https://mborgerson.com/creating-an-executable-from-a-python-script"

su -c "pip install pyinstaller" root
pyinstaller --hidden-import pkgutil --windowed --icon=icons/TrezorHash.ico --onefile TrezorHash.py
echo "Single file executable is: ./dist/TrezorHash"
ls -lh ./dist/TrezorHash
9 changes: 9 additions & 0 deletions singleFileExecutableLinuxReadme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
This single file executable for Linux was created in May 2017
on Debian GNU/Linux 8 (jessie) 64-bit.
To reproduce it:
- install Python
- install pip
- download TrezorHash from https://github.com
- run "make"
- run script singleFileExecutableOnLinuxCreate.sh
The output is a 43M file TrezorHash in dist/TrezorHash

0 comments on commit ef4f1b1

Please sign in to comment.