Skip to content

Commit

Permalink
添加 Version File
Browse files Browse the repository at this point in the history
  • Loading branch information
tastysugar committed Apr 6, 2023
1 parent cca2455 commit 78e7f08
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion make.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyinstaller --onefile --noconsole main.py --collect-all html2phpbbcode -n OKPGUI.exe
pyinstaller --onefile --noconsole main.py --collect-all html2phpbbcode --version-file versionfile.rc -n OKPGUI.exe
44 changes: 44 additions & 0 deletions versionfile.rc
Original file line number Diff line number Diff line change
@@ -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=(0,0,1,5),
prodvers=(0,0,1,5),
# 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'AmusementCluby'),
StringStruct(u'FileDescription', u'OKPGUI'),
StringStruct(u'FileVersion', u'0.0.1.5'),
StringStruct(u'InternalName', u'OKPGUI'),
StringStruct(u'LegalCopyright', u'© AmusementClub. All rights reserved.'),
StringStruct(u'OriginalFilename', u'OKPGUI.exe'),
StringStruct(u'ProductName', u'OKPGUI'),
StringStruct(u'ProductVersion', u'0.0.1.5')])
]),
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
]
)

0 comments on commit 78e7f08

Please sign in to comment.