Autogenerate Windows resource and add build number to executable

This commit is contained in:
Dan Paulat 2024-08-08 00:04:53 -05:00
parent 3edb4e4f96
commit 687646d407
3 changed files with 133 additions and 33 deletions

32
scwx-qt/res/scwx-qt.rc.in Normal file
View file

@ -0,0 +1,32 @@
#include "winver.h"
IDI_ICON1 ICON "${resource_dir}\\scwx-qt\\res\\icons\\scwx-256.ico"
VS_VERSION_INFO VERSIONINFO
FILEVERSION ${version_commas},${build_number}
PRODUCTVERSION ${version_commas},${build_number}
FILEFLAGS 0x0L
FILEFLAGSMASK 0x3fL
FILEOS 0x00040004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "000004b0"
BEGIN
VALUE "CompanyName", "Dan Paulat"
VALUE "FileDescription", "Supercell Wx"
VALUE "FileVersion", "${version_string}.${build_number}"
VALUE "LegalCopyright", "Copyright (C) 2021-${copyright_year} Dan Paulat"
VALUE "InternalName", "scwx"
VALUE "OriginalFilename", "supercell-wx.exe"
VALUE "ProductName", "Supercell Wx"
VALUE "ProductVersion", "${version_string}.${build_number}"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0, 1200
END
END