Open flywire opened 2 years ago
Installs as Librecad shortcut, expect LibreCAD3.
2. Why add
LibreCAD3
to path?
I note it is optional in the install with no explanation.
Without adding to path it will not start and can't find files which are not on my computer:
I assume these are the debug versions of the dlls. Following installation, the software should run.
Hi flywire! The tool that I'm using to create the installer for windows is CPack, which uses NSIS to create it.
include(InstallRequiredSystemLibraries)
It automatically tries to add to the package some needed libraries.
All the code for Cpack/NSIS should be in the root CMakeLists.txt, here is it:
#Cpack -> NSIS
#General Vars
set(CPACK_PACKAGE_NAME "LibreCAD3")
set(CPACK_PACKAGE_VENDOR "LibreCAD")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "1")
set(CPACK_PACKAGE_VERSION_PATCH "1")
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}) #name of the install folder
set(CPACK_PACKAGE_DESCRIPTION "LibreCAD is a free Open Source CAD application for Windows, Apple and Linux. Support and documentation are free from our large, dedicated community of users, contributors and developers.")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Open Source 2D-CAD")
set(CPACK_PACKAGE_HOMEPAGE_URL "https://librecad.org/")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
#NSIS Vars
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL "ON")
set(CPACK_NSIS_MODIFY_PATH "ON")
set(CPACK_CREATE_DESKTOP_LINKS "ON")
set(CPACK_NSIS_DISPLAY_NAME ${CPACK_PACKAGE_NAME})
set(CPACK_NSIS_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
set(CPACK_NSIS_HELP_LINK "https://github.com/LibreCAD/LibreCAD_3")
set(CPACK_NSIS_URL_INFO_ABOUT ${CPACK_PACKAGE_HOMEPAGE_URL})
set(CPACK_NSIS_CONTACT "https://librecad.zulipchat.com/login/")
set(CPACK_NSIS_FINISH_TITLE "Thanks for installing LibreCAD 3")
#For the shortcut
set(CPACK_PACKAGE_EXECUTABLES
"librecad" "Librecad shortcut"
)
set(CPACK_CREATE_DESKTOP_LINKS
"librecad"
)
include(CPack)
A few things aren't clear:
LibreCAD3
to path? (anyway, WARNING! PATH too long installer unable to modify PATH!)The installer file should have a meaningful name.