Closed Baklap4 closed 2 years ago
Okay stupid me.. in our resource file we had 2 includes:
#include <winuser.h>
#include <winver.h>
LANGUAGE 9, 1
1 ICON "@CMAKE_SOURCE_DIR@/win32/performous.ico"
VS_VERSION_INFO VERSIONINFO
FILEVERSION @VERSION_MAJOR@, @VERSION_MINOR@, @VERSION_PATCH@, @VERSION_TWEAK@
PRODUCTVERSION @VERSION_MAJOR@, @VERSION_MINOR@, @VERSION_PATCH@, @VERSION_TWEAK@
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEOS VOS_NT_WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "@CMAKE_PROJECT_NAME@ Developers"
VALUE "FileDescription", "@CMAKE_PROJECT_NAME@ Game"
VALUE "FileVersion", "@PROJECT_VERSION@"
VALUE "InternalName", "Performous.exe"
VALUE "LegalCopyright", "Copyright © 2009-@YEAR@ @CMAKE_PROJECT_NAME@ Team - GNU GPL v2 or later"
VALUE "OriginalFilename", "Performous.exe"
VALUE "ProductName", "@CMAKE_PROJECT_NAME@"
VALUE "ProductVersion", "@PROJECT_VERSION@"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
Replacing those with #using <windows.h>
solved the problem.
Strange thing is that i don't get this error locally 🤔
@Baklap4 frankly speaking I had no idea, great you solved the problem :)
If locally is working, but not on the runner, please check that Windows SDK and MSVC versions matches what you have locally. On the runner in your log I see MSVC 14.31.31103
and Windows SDK 10.0.22000.0
Finally got to the part of building my application. I'm trying to compile it and it almost finishes and then ultimately fails upon building my resource file:
any idea why this is the case? I'm building with Ninja as generator.
This is the relevant section in our actions:
our presets file looks like this:
generated output summary in GH-actions