@@ -813,14 +813,20 @@ endif()
813
813
# Leaving it
814
814
set (CPACK_IFW_VERBOSE ON )
815
815
816
- set (CPACK_PACKAGE_VENDOR "OpenStudio Coalition" )
816
+ set (CPACK_PACKAGE_VENDOR "OpenStudio Coalition" ) # CPACK_IFW_PACKAGE_PUBLISHER is set from this
817
+
817
818
# These are ok, even if we have a prerelease tag
818
819
set (CPACK_PACKAGE_VERSION_MAJOR ${OpenStudioApplication_VERSION_MAJOR} )
819
820
set (CPACK_PACKAGE_VERSION_MINOR ${OpenStudioApplication_VERSION_MINOR} )
820
821
set (CPACK_PACKAGE_VERSION_PATCH ${OpenStudioApplication_VERSION_PATCH} )
821
822
822
823
# CPACK_DEBIAN_PACKAGE_DESCRIPTION defaults to this one too. dpkg-deb -I xxx.deb will show this description
823
- set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenStudioApplication ${OpenStudioApplication_VERSION} , based on openstudio (core) ${OPENSTUDIO_VERSION} . OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance" )
824
+ set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenStudioApplication ${OpenStudioApplication_VERSION} is a Graphical User Interface for OpenStudio" )
825
+ set (CPACK_PACKAGE_DESCRIPTION "OpenStudioApplication ${OpenStudioApplication_VERSION} , based on openstudio (core) ${OPENSTUDIO_VERSION} . OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance" )
826
+
827
+ set (CPACK_IFW_PACKAGE_TITLE "OpenStudioApplication ${OpenStudioApplication_VERSION} " )
828
+ set (CPACK_IFW_PRODUCT_URL "https://openstudiocoalition.org" )
829
+ set (CPACK_IFW_PACKAGE_WINDOW_ICON "${PROJECT_SOURCE_DIR} /icons/os_32.png" )
824
830
825
831
# The actual package file name on disk
826
832
if (APPLE )
@@ -836,13 +842,21 @@ endif()
836
842
837
843
set (CPACK_PACKAGE_CONTACT "osc@openstudiocoalition.org" )
838
844
839
- # Install additional Documents, such as release notes
840
- install (FILES "${PROJECT_SOURCE_DIR} /QT_LICENSE_GPL_3_0.txt" DESTINATION . )
841
- install (FILES "${PROJECT_SOURCE_DIR} /QT_LICENSE_LGPL_3_0.txt" DESTINATION . )
842
- install (FILES "${PROJECT_SOURCE_DIR} /LICENSE.md" DESTINATION . )
845
+ # Install additional Documents, such as release notes
846
+ install (FILES "${PROJECT_SOURCE_DIR} /QT_LICENSE_GPL_3_0.txt" DESTINATION . COMPONENT Licenses )
847
+ install (FILES "${PROJECT_SOURCE_DIR} /QT_LICENSE_LGPL_3_0.txt" DESTINATION . COMPONENT Licenses )
848
+ install (FILES "${PROJECT_SOURCE_DIR} /LICENSE.md" DESTINATION . COMPONENT Licenses )
849
+
850
+ # Not sure whether we want a "Accept license" box in the IFW installer or not...
851
+ set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR} /LICENSE.md" )
852
+ # set(CPACK_RESOURCE_FILE_README "${PROJECT_BINARY_DIR}/release/readme.html")
843
853
844
854
if (APPLE )
845
855
set (CPACK_IFW_TARGET_DIRECTORY /Applications/OpenStudioApplication-${OpenStudioApplication_VERSION}/ )
856
+ # Custom installer icon. Has to be .icns on mac, .ico on windows, not supported on Unix
857
+ set (CPACK_IFW_PACKAGE_ICON "${PROJECT_SOURCE_DIR} /icons/os.icns" )
858
+ # Launch OpenStudioApp at end of install
859
+ set (CPACK_IFW_PACKAGE_RUN_PROGRAM "@TargetDir@/OpenStudioApp.app/Contents/MacOS/OpenStudioApp" )
846
860
elseif (UNIX )
847
861
848
862
# For debug
@@ -932,6 +946,12 @@ elseif(WIN32)
932
946
set (CPACK_IFW_TARGET_DIRECTORY "C:/${CPACK_PACKAGE_INSTALL_DIRECTORY} " )
933
947
set (CPACK_BINARY_IFW ON CACHE BOOL "Enable to build IFW packages" )
934
948
set (CPACK_BINARY_NSIS OFF CACHE BOOL "Enable to build NSIS packages" )
949
+
950
+ # Custom installer icon. Has to be .icns on mac, .ico on windows, not supported on Unix
951
+ set (CPACK_IFW_PACKAGE_ICON "${PROJECT_SOURCE_DIR} /icons/os.ico" )
952
+
953
+ # Launch OpenStudioApp at end of install
954
+ set (CPACK_IFW_PACKAGE_RUN_PROGRAM "@TargetDir@/bin/OpenStudioApp" )
935
955
endif ()
936
956
937
957
@@ -988,6 +1008,7 @@ cpack_add_component(Resources
988
1008
cpack_add_component (OpenStudioApp
989
1009
DISPLAY_NAME "OpenStudio Application"
990
1010
DESCRIPTION "OpenStudio Application"
1011
+ REQUIRED
991
1012
)
992
1013
993
1014
cpack_ifw_configure_component (Resources
@@ -1017,6 +1038,19 @@ cpack_add_component(RubyAPI
1017
1038
DESCRIPTION "The Ruby openstudio modeleditor for Sketchup"
1018
1039
)
1019
1040
1041
+ cpack_add_component (
1042
+ Licenses
1043
+ DISPLAY_NAME "Licenses"
1044
+ DESCRIPTION "License files for OpenStudio Application"
1045
+ REQUIRED
1046
+ HIDDEN
1047
+ )
1048
+
1049
+ cpack_ifw_configure_component (Licenses
1050
+ FORCED_INSTALLATION
1051
+ LICENSES "OpenStudio Application" ${CPACK_RESOURCE_FILE_LICENSE}
1052
+ )
1053
+
1020
1054
add_custom_target (PACKAGE_DEBUG
1021
1055
COMMAND ${CMAKE_CPACK_COMMAND} --debug --verbose --config CPackConfig.cmake
1022
1056
COMMENTS "Build package with debug and verbose output"
0 commit comments