summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-04-19 17:20:35 -0400
committerLouie S <louie@example.com>2024-04-19 17:20:35 -0400
commit0c7266881c346ae15f540e0b805ce4a8fd29f064 (patch)
treecb186d028fdb1458322c3513cbd036e2487359c9
parent138eed2f30e487a18bc6f532f3a6b835facf8298 (diff)
Allow regular users to run NSIS installer
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ca611b3..3cda097 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -143,6 +143,9 @@ set(CPACK_RESOURCE_FILE_README ${CMAKE_CURRENT_SOURCE_DIR}/README.md)
set(CPACK_PACKAGE_CONTACT "Louie Shprung <lshprung@tutanota.com>")
set(CPACK_SOURCE_IGNORE_FILES "/\.git.*;/\.cache;/build;/compile_commands\.json$;/config\.h$;/data/assignment-list\.desktop$")
+# CPack NSIS configuration
+set(CPACK_NSIS_DEFINES "RequestExecutionLevel user")
+
# CPack Deb configuration
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
if(QT_VERSION_MAJOR VERSION_EQUAL 5)