Compare commits

...
3 Commits
Author SHA1 Message Date
Maxim Yaskevich 948a484ca5 set proper permissions on /user/share folders 2016-04-13 17:35:39 +03:00
Maxim Yaskevich cda3ee6bf9 added package icon files 2016-04-11 18:22:24 +03:00
Maxim Yaskevich 071e2132f1 added rpm package scenario 2016-04-08 18:06:23 +03:00
12 changed files with 36 additions and 6 deletions
+8 -2
View File
@@ -9,14 +9,17 @@
# SYSTEM_OPENBSD
# SYSTEM_NETBSD
#
# 2) Build types checks
# 2) Additional Linux distro check
# SYSTEM_LINUX_RHEL
#
# 3) Build types checks
#
# BUILD_DEBUG
# BUILD_RELEASE
# BUILD_RELWITHDEBINFO
# BUILD_MINSIZEREL
#
# 3) Link "lib groups" and "whole-archive" options
# 4) Link "lib groups" and "whole-archive" options
#
# LINK_LIBGROUP_START
# LINK_LIBGROUP_END
@@ -30,6 +33,9 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
set(SYSTEM_WINDOWS TRUE)
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
set(SYSTEM_LINUX TRUE)
if(EXISTS "/etc/redhat-release")
set(SYSTEM_LINUX_RHEL TRUE)
endif()
elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(SYSTEM_FREEBSD TRUE)
set(SYSTEM_BSD TRUE)
+11 -2
View File
@@ -18,7 +18,7 @@ if(SYSTEM_LINUX)
set(bin_dir bin)
set(lib_dir lib)
set(resources_dir share)
set(license_dir .)
set(license_dir ${resources_dir}/doc/robomongo)
set(qt_plugins_dir ${lib_dir})
set(qt_conf_dir ${bin_dir})
@@ -82,6 +82,16 @@ if(SYSTEM_LINUX)
QGtk2ThemePlugin
QXcbIntegrationPlugin)
# Install icons
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/install/linux/icons/"
DESTINATION "${resources_dir}/icons")
# Install desktop shortcut
install(
FILES "${CMAKE_SOURCE_DIR}/install/linux/robomongo.desktop"
DESTINATION "${resources_dir}/applications")
elseif(SYSTEM_MACOSX)
install_qt_lib(MacExtras DBus)
install_qt_plugins(
@@ -105,4 +115,3 @@ elseif(SYSTEM_WINDOWS)
set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION .)
include(InstallRequiredSystemLibraries)
endif()
+9 -2
View File
@@ -52,9 +52,16 @@ target_architecture(target_arch)
# Package file name
set(CPACK_PACKAGE_FILE_NAME ${package_file_name}-${package_file_version}-${system_name}-${target_arch}-${git_hash})
if(SYSTEM_LINUX)
set(CPACK_GENERATOR TGZ)
if(SYSTEM_LINUX_RHEL)
set(CPACK_GENERATOR RPM)
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/DESCRIPTION")
set(CPACK_RPM_PACKAGE_LICENSE "GPLv3")
set(CPACK_RPM_PACKAGE_DEBUG 1)
list(APPEND CPACK_RPM_USER_FILELIST "%attr(755,root,root) /usr/share/icons")
list(APPEND CPACK_RPM_USER_FILELIST "%attr(755,root,root) /usr/share/applications")
elseif(SYSTEM_LINUX)
set(CPACK_GENERATOR TGZ)
elseif(SYSTEM_MACOSX)
set(CPACK_GENERATOR DragNDrop)
Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

+8
View File
@@ -0,0 +1,8 @@
[Desktop Entry]
Encoding=UTF-8
Name=Robomongo
Comment=Shell-centric cross-platform MongoDB management tool
Exec=robomongo
Icon=robomongo
Type=Application
Categories=Development;Utility;