-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyinstaller_version_file.txt
55 lines (55 loc) · 2.35 KB
/
pyinstaller_version_file.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# UTF-8
#
# For more details about fixed file info 'ffi' see:
# http://msdn.microsoft.com/en-us/library/ms646997.aspx
# HOW TO UPDATE:
# Change the filevers variable
# Change the ProductVersion in the StringTable
# To use this file when running PyInstaller: python.exe -OO -m PyInstaller -w --version-file pyinstaller_version_file.txt --icon=GUI\raw_resources\SubnetCalcIcon.ico Quick_Subnet_Calculator.py
# (-OO is optional and is for additional bytecode optimization)
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.
# NOTE: change filevers ONLY. To change product version, edit ProductVersion in the StringTable!
# LEAVE the 4-part versioning, just use 0 where you don't have any version info. Ex: 4.4 will be 4, 4, 0, 0
filevers=(1, 1, 0, 0),
prodvers=(0, 0, 0, 0),
# 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=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=[
VarFileInfo([VarStruct(u'Translation', [0, 1200])]),
StringFileInfo(
[
StringTable(
u'000004b0',
[StringStruct(u'Comments', u''),
StringStruct(u'CompanyName', u''),
StringStruct(u'FileDescription', u'IP subnet calculation program'),
# NOTE: This 'FileVersion' is over-written with the filevers contents! Change that instead!
StringStruct(u'FileVersion', u'0.0.0.0'),
StringStruct(u'InternalName', u''),
StringStruct(u'LegalCopyright', u'Copyright © Brandon M. Pace 2018, 2019'),
StringStruct(u'OriginalFilename', u'Quick_Subnet_Calculator.exe'),
StringStruct(u'ProductName', u'Quick Subnet Calculator'),
# NOTE: This is where you should change the version:
StringStruct(u'ProductVersion', u'1.1.0.0'),
# Don't worry about changing the below at all
StringStruct(u'Assembly Version', u'0.0.0.0')])
])
]
)