From b803c87cc5f5ef785c151a75a424f59c33cfa8f7 Mon Sep 17 00:00:00 2001 From: Michał Klichowicz Date: Sat, 30 Sep 2023 15:20:24 +0200 Subject: PyInstaller setup --- .gitignore | 2 ++ .version | 42 ++++++++++++++++++++++++++++++++++++++++++ mojzesz.ico | Bin 0 -> 16958 bytes mojzesz.spec | 17 +++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 .version create mode 100644 mojzesz.ico create mode 100644 mojzesz.spec diff --git a/.gitignore b/.gitignore index 2745597..4cbcf52 100644 --- a/.gitignore +++ b/.gitignore @@ -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 new file mode 100644 index 0000000..c08ecac Binary files /dev/null and b/mojzesz.ico differ 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') -- cgit v1.2.3