From 5fab49088538746b8737591dd9930f76ec1ebfe1 Mon Sep 17 00:00:00 2001 From: Dunestorm Date: Tue, 2 Jul 2024 00:01:38 +0100 Subject: [PATCH] LiquidGUI - Added support for EXE version data. --- build.bat | 2 +- file_version_info.txt | 44 ++++++++++++++++++++++++++++++++++++++++++ metadata.yml | 12 ++++++++++++ requirements.txt | Bin 980 -> 1142 bytes 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 file_version_info.txt create mode 100644 metadata.yml diff --git a/build.bat b/build.bat index 3091270..5b8426e 100644 --- a/build.bat +++ b/build.bat @@ -1,4 +1,4 @@ @echo off call .venv\Scripts\activate.bat pyside6-rcc.exe resources.qrc -o resources.py -pyinstaller.exe main.pyw --onefile --paths .venv\Lib\site-packages --icon resources\LiquidGUI.ico --name LiquidGUI \ No newline at end of file +pyinstaller.exe main.pyw --onefile --paths .venv\Lib\site-packages --icon resources\LiquidGUI.ico --name LiquidGUI --version-file file_version_info.txt \ No newline at end of file diff --git a/file_version_info.txt b/file_version_info.txt new file mode 100644 index 0000000..9cc49b2 --- /dev/null +++ b/file_version_info.txt @@ -0,0 +1,44 @@ +# UTF-8 +# +# For more details about fixed file info 'ffi' see: +# http://msdn.microsoft.com/en-us/library/ms646997.aspx + +VSVersionInfo( + ffi=FixedFileInfo( + # filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4) + # Set not needed items to zero 0. Must always contain 4 elements. + filevers=(1,0,3,2), + prodvers=(1,0,3,2), + # Contains a bitmask that specifies the valid bits 'flags'r + 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=0x40004, + # 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', + [StringStruct(u'CompanyName', u'Fil Sapia'), + StringStruct(u'FileDescription', u'LiquidGUI'), + StringStruct(u'FileVersion', u'1.0.3.2'), + StringStruct(u'InternalName', u'LiquidGUI'), + StringStruct(u'LegalCopyright', u'© Fil Sapia. All rights reserved.'), + StringStruct(u'OriginalFilename', u'LiquidGUI.exe'), + StringStruct(u'ProductName', u'LiquidGUI'), + StringStruct(u'ProductVersion', u'1.0.3.2')]) + ]), + VarFileInfo([VarStruct(u'Translation', [0, 1200, 1033, 1252])]) + ] +) \ No newline at end of file diff --git a/metadata.yml b/metadata.yml new file mode 100644 index 0000000..5d1d05c --- /dev/null +++ b/metadata.yml @@ -0,0 +1,12 @@ +Version: 1.0.3.2 +CompanyName: Fil Sapia +FileDescription: LiquidGUI +InternalName: LiquidGUI +LegalCopyright: © Fil Sapia. All rights reserved. +OriginalFilename: LiquidGUI.exe +ProductName: LiquidGUI +Translation: + - langID: 0 + charsetID: 1200 + - langID: 1033 + charsetID: 1252 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 5a33f078ee85b4345e5214ce1406141528fa44f8..8f5f06ccb7927c770f1208d9934ff10a4fdcc4fa 100644 GIT binary patch delta 151 zcmcb@{*7aU0;8lCLncEWLl#3KgAs!*5E?V+F&F}|$z*B9ctu~Jco9Q3Ln%W6Lokq? z#*hkDWdv1aI=Phb?&K$oLaMq9Wk9(ihGL+3`9KrXfOHO;YQxE%O#dYV7%CYe85|jW T8GOKInE}l*0GT)0nRy}r1IQhB delta 23 fcmeyyafN+@0^?*m#;D2r7;j9z#`JCSE9M>mbvz1g