diff options
author | Michał Klichowicz <emkael@tlen.pl> | 2023-09-30 15:20:24 +0200 |
---|---|---|
committer | Michał Klichowicz <emkael@tlen.pl> | 2023-09-30 15:20:24 +0200 |
commit | b803c87cc5f5ef785c151a75a424f59c33cfa8f7 (patch) | |
tree | 819894151c72d9a2987cf1ff54757c898ca9afff | |
parent | 463795c2b9ab02a0b0e92d29b3a78de565eb4c57 (diff) |
PyInstaller setup
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .version | 42 | ||||
-rw-r--r-- | mojzesz.ico | bin | 0 -> 16958 bytes | |||
-rw-r--r-- | mojzesz.spec | 17 |
4 files changed, 61 insertions, 0 deletions
@@ -2,3 +2,5 @@ www/ config.json *.pyc *.json +build/ +dist/ diff --git a/.version b/.version new file mode 100644 index 0000000..c9d7718 --- /dev/null +++ b/.version @@ -0,0 +1,42 @@ +# UTF-8 +VSVersionInfo( + ffi=FixedFileInfo( + filevers=(0, 1, 0, 0), + prodvers=(0, 1, 0, 0), + # Contains a bitmask that specifies the valid bits 'flags' + mask=0x3f, + # Contains a bitmask that specifies the Boolean attributes of the file. + flags=0x0, + # The operating system for which this file was designed. + # 0x4 - NT and there is no need to change it. + OS=0x4, + # The general type of file. + # 0x1 - the file is an application. + fileType=0x1, + # The function of the file. + # 0x0 - the function is not defined for this fileType + subtype=0x0, + # Creation date and time stamp. + date=(0, 0) + ), + kids=[ + StringFileInfo( + [ + StringTable( + u'040904b0', # 0x0409(1033)= English, 0x04b0(1200)= UTF-8 + [StringStruct(u'CompanyName', u'emkael.info'), + StringStruct(u'ProductName', u'teamy_mojzesz'), + StringStruct(u'ProductVersion', u'0, 1, 0, 0'), + StringStruct(u'InternalName', u'teamy_mojzesz'), + StringStruct(u'OriginalFilename', u'mojzesz.exe'), + StringStruct(u'FileVersion', u'0, 1, 0, 0'), + StringStruct( + u'FileDescription', + u'LoveBridge tablet PBN import to JFR Teamy events'), + StringStruct(u'LegalCopyright', + u'© 2023 mkl (Michał Klichowicz)'), + StringStruct(u'LegalTrademarks', u'')]) + ]), + VarFileInfo([VarStruct(u'Translation', [1033, 1200])]) + ] +) diff --git a/mojzesz.ico b/mojzesz.ico Binary files differnew file mode 100644 index 0000000..c08ecac --- /dev/null +++ b/mojzesz.ico diff --git a/mojzesz.spec b/mojzesz.spec new file mode 100644 index 0000000..395da2a --- /dev/null +++ b/mojzesz.spec @@ -0,0 +1,17 @@ +import os +a = Analysis(['src/main.py'], + pathex=[os.path.abspath('.')], + hiddenimports=['mysql.connector.locales.eng.client_error'], + hookspath=None, + runtime_hooks=None) +pyz = PYZ(a.pure) +exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + name='mojzesz.exe', + debug=False, + strip=None, + upx=True, + console=True, icon='mojzesz.ico', version='.version') |