From 08365fb260ae6e32442dd9f196e65d13facb4b33 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 19 Nov 2023 11:54:48 +0000 Subject: Windows: add a VERSIONINFO resource to the puzzle binaries. This includes the textual version number in its existing form (yyyymmdd followed by an abbreviated git hash). The four-part binary version is set to 1 followed by year, month and day; if I ever want to change that, I can increment the initial 1. FileDescription is taken from the existing DESCRIPTION string provided to each puzzle() statement in CMakeLists.txt. This means that puzzles.rc now always defines at least one resource, so we can remove the workaround for MinGW's windres not being able to cope with an empty .rc file, which added a dummy resource in the absence of an icon. --- version.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'version.h') diff --git a/version.h b/version.h index 997e005..20d2800 100644 --- a/version.h +++ b/version.h @@ -9,3 +9,5 @@ */ #define VER "Unidentified build" + +#define VERSIONINFO_BINARY_VERSION 0,0,0,0 -- cgit v1.1