Skip to content

Commit 3f95cb9

Browse files
committed
Add detailed version info file generation for ChiselPDF release
1 parent 9de3dde commit 3f95cb9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,38 @@ jobs:
4545
echo "VERSION=$version" >> $env:GITHUB_OUTPUT
4646
echo "Version: $version"
4747
48+
- name: Create version info file
49+
run: |
50+
@"
51+
VSVersionInfo(
52+
ffi=FixedFileInfo(
53+
filevers=(1, 0, ${{ github.run_number }}, 0),
54+
prodvers=(1, 0, ${{ github.run_number }}, 0),
55+
mask=0x3f,
56+
flags=0x0,
57+
OS=0x40004,
58+
fileType=0x1,
59+
subtype=0x0,
60+
date=(0, 0)
61+
),
62+
kids=[
63+
StringFileInfo([
64+
StringTable(
65+
u'040904B0',
66+
[StringStruct(u'CompanyName', u'kelltom'),
67+
StringStruct(u'FileDescription', u'ChiselPDF - PDF Page Selector'),
68+
StringStruct(u'FileVersion', u'1.0.${{ github.run_number }}.0'),
69+
StringStruct(u'InternalName', u'ChiselPDF'),
70+
StringStruct(u'LegalCopyright', u'Copyright (c) 2025 kelltom'),
71+
StringStruct(u'OriginalFilename', u'ChiselPDF.exe'),
72+
StringStruct(u'ProductName', u'ChiselPDF'),
73+
StringStruct(u'ProductVersion', u'1.0.${{ github.run_number }}.0')])
74+
]),
75+
VarFileInfo([VarStruct(u'Translation', [1033, 1200])])
76+
]
77+
)
78+
"@ | Out-File -FilePath version_info.txt -Encoding UTF8
79+
4880
- name: Create Velopack Release
4981
run: |
5082
dotnet tool install -g vpk

0 commit comments

Comments
 (0)