mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-17 03:00:19 +00:00
win32: Use version information from configure.ac to populate the Windows-specific files that need it - config-win32.h, version.txt, hexchat.rc, hexchat.iss
This is done via T4 templates. The original files are now generated at build-time and so have been added to .gitignore and removed from the repository, with the exception of version.txt which must be hosted on GitHub for the updater plugin.
This commit is contained in:
27
src/fe-gtk/hexchat.rc.tt
Normal file
27
src/fe-gtk/hexchat.rc.tt
Normal file
@@ -0,0 +1,27 @@
|
||||
<#@ include file="..\..\version.include.tt" #>#include <winver.h>
|
||||
#include "../../config-win32.h"
|
||||
|
||||
#define COMMA_VERSION <#= string.Join(",", versionParts) #>,0
|
||||
|
||||
XC_ICON ICON "../../data/icons/hexchat.ico"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION COMMA_VERSION
|
||||
PRODUCTVERSION COMMA_VERSION
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
|
||||
VALUE "FileDescription", "HexChat IRC Client"
|
||||
VALUE "ProductName", "HexChat"
|
||||
VALUE "ProductVersion", PACKAGE_VERSION
|
||||
VALUE "FileVersion", PACKAGE_VERSION
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x0409, 0x04B0
|
||||
END
|
||||
END
|
||||
Reference in New Issue
Block a user