Skip to content

Commit d62f02f

Browse files
author
8go
committed
bumped versin to v0.3.1, created single-file-executable
1 parent 4886013 commit d62f02f

7 files changed

+131
-2
lines changed

basics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
TSFEFILEFORMATVERSION = 1
88

99
# Name of software version, must be less than 16 long
10-
TSFEVERSION = "v0.3-beta"
10+
TSFEVERSION = "v0.3.1"
1111

1212
# default log level
1313
LOGGINGLEVEL = logging.INFO # CRITICAL, ERROR, WARNING, INFO, DEBUG

dialogs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def selectFile(self):
270270

271271
qFnameList = dialog.selectedFiles() # QStringList
272272
self.fileNames = str(qFnameList.join("<join>")).split("<join>") # convert to Py list
273-
print "Selected files are: ", self.fileNames
273+
self.logger.debug("Selected files are: " + str(self.fileNames))
274274
self.setSelectedFile(self.fileNames)
275275

276276
class EnterPinDialog(QtGui.QDialog, Ui_EnterPinDialog):
197 KB
Binary file not shown.
7.53 KB
Loading
Lines changed: 109 additions & 0 deletions
Loading

singleFileExecutableLinuxCreate.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
echo "Requires Python and pip to be installed"
4+
echo "Read: http://www.pyinstaller.org/"
5+
echo "Something similar should work on Windows as well"
6+
echo "Read: https://mborgerson.com/creating-an-executable-from-a-python-script"
7+
8+
su -c "pip install pyinstaller" root
9+
pyinstaller --hidden-import pkgutil --windowed --icon=icons/TrezorSymmetricFileEncryption.icon.ico --onefile TrezorSymmetricFileEncryption.py
10+
echo "Single file executable is: ./dist/TrezorSymmetricFileEncryption"
11+
ll -h ./dist/TrezorSymmetricFileEncryption
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This single file executable for Linux was created in May 2017
2+
on Debian GNU/Linux 8 (jessie) 64-bit.
3+
To reproduce it:
4+
- install Python
5+
- install pip
6+
- download TrezorSymmetricFileEncryption from https://github.com
7+
- run "make"
8+
- run script singleFileExecutableOnLinuxCreate.sh
9+
The output is a 25M file TrezorSymmetricFileEncryption in dist/TrezorSymmetricFileEncryption

0 commit comments

Comments
 (0)