Skip to content

Commit 8fc9d06

Browse files
committed
chore: add product version to windows build rc file
1 parent 73b15da commit 8fc9d06

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ file (GLOB PPIC_TS_FILES app/translations/*.ts)
9494
set (PPIC_CPP_FILES_FOR_I18N ${PPIC_CPP_FILES})
9595

9696
if (WIN32)
97-
list(APPEND PPIC_RC_FILES assets/pineapple-pictures.rc)
97+
configure_file(assets/pineapple-pictures.rc.in pineapple-pictures.rc @ONLY)
98+
list(APPEND PPIC_RC_FILES ${CMAKE_CURRENT_BINARY_DIR}/pineapple-pictures.rc)
9899
endif ()
99100

100101
add_executable (${EXE_NAME}
Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
IDI_ICON1 ICON DISCARDABLE "icons/app-icon.ico"
2-
1 VERSIONINFO
3-
BEGIN
4-
BLOCK "StringFileInfo"
5-
BEGIN
6-
BLOCK "040904E4"
7-
BEGIN
8-
VALUE "FileDescription", "Pineapple Pictures - Image Viewer"
9-
VALUE "LegalCopyright", "MIT/Expat License - Copyright (C) 2024 Gary Wang"
10-
VALUE "ProductName", "Pineapple Pictures"
11-
END
12-
END
13-
BLOCK "VarFileInfo"
14-
BEGIN
15-
VALUE "Translation", 0x409, 1200
16-
END
17-
END
1+
IDI_ICON1 ICON DISCARDABLE "@CMAKE_CURRENT_SOURCE_DIR@/assets/icons/app-icon.ico"
2+
1 VERSIONINFO
3+
BEGIN
4+
BLOCK "StringFileInfo"
5+
BEGIN
6+
BLOCK "040904E4"
7+
BEGIN
8+
VALUE "FileDescription", "Pineapple Pictures - Image Viewer"
9+
VALUE "LegalCopyright", "MIT/Expat License - Copyright (C) 2024 Gary Wang"
10+
VALUE "ProductName", "Pineapple Pictures"
11+
VALUE "ProductVersion", "@PROJECT_VERSION@"
12+
END
13+
END
14+
BLOCK "VarFileInfo"
15+
BEGIN
16+
VALUE "Translation", 0x409, 1200
17+
END
18+
END

0 commit comments

Comments
 (0)