Skip to content

Commit

Permalink
Dynamically generate Windows manifest
Browse files Browse the repository at this point in the history
using CMake, instead of hard-coding, e.g., the version number
  • Loading branch information
stloeffler committed Feb 18, 2024
1 parent dde512f commit d62ac33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion res/TeXworks.exe.manifest → res/TeXworks.exe.in.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity type="win32" name="TUG.TeXworks.TeXworks" version="0.7.0.0" />
<assemblyIdentity type="win32" name="TUG.TeXworks.TeXworks" version="@TeXworks_VERSION@.0" />
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
Expand Down
2 changes: 1 addition & 1 deletion res/TeXworks.in.rc
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ END
// Required by MinGW but breaks MSVC; configured by CMake
#cmakedefine01 CREATE_MANIFEST
#if CREATE_MANIFEST
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "@PROJECT_SOURCE_DIR@/res/TeXworks.exe.manifest"
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "TeXworks.exe.manifest"
#endif
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ FILE(GLOB QT_TRANS_QM "${TeXworks_SOURCE_DIR}/trans/qt/*.qm")
IF ( WIN32 )
if (NOT MSVC)
set(CREATE_MANIFEST TRUE)
configure_file(${TeXworks_SOURCE_DIR}/res/TeXworks.exe.in.manifest TeXworks.exe.manifest)
endif (NOT MSVC)
configure_file(${TeXworks_SOURCE_DIR}/res/TeXworks.in.rc TeXworks.rc)
list(APPEND TEXWORKS_SRCS ${CMAKE_CURRENT_BINARY_DIR}/TeXworks.rc)
Expand Down

0 comments on commit d62ac33

Please sign in to comment.