diff options
author | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2017-04-08 04:13:50 (GMT) |
---|---|---|
committer | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2017-04-08 04:13:50 (GMT) |
commit | 94420a7b61d6c83dbd2ba0ce566af6624cd07aad (patch) | |
tree | e4f1b2677a45e0836ee6506edd99ab0654ac8c25 /Packaging/QtSDK/qt.tools.cmake.xx.qs.in | |
parent | 1a6e47aa3d9ac02bdaf4d107b33bdf9df7779495 (diff) | |
download | CMake-94420a7b61d6c83dbd2ba0ce566af6624cd07aad.zip CMake-94420a7b61d6c83dbd2ba0ce566af6624cd07aad.tar.gz CMake-94420a7b61d6c83dbd2ba0ce566af6624cd07aad.tar.bz2 |
QtIFW: Improved packaging as part of the QtSDK
Changes:
- Fix install script template (*.qs.in) to register on all platforms;
- Add patch version numter to display name ("CMake X.Y" -> "CMake X.Y.Z").
Diffstat (limited to 'Packaging/QtSDK/qt.tools.cmake.xx.qs.in')
-rw-r--r-- | Packaging/QtSDK/qt.tools.cmake.xx.qs.in | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/Packaging/QtSDK/qt.tools.cmake.xx.qs.in b/Packaging/QtSDK/qt.tools.cmake.xx.qs.in index 81ce157..e806dd7 100644 --- a/Packaging/QtSDK/qt.tools.cmake.xx.qs.in +++ b/Packaging/QtSDK/qt.tools.cmake.xx.qs.in @@ -25,24 +25,22 @@ Component.prototype.createOperations = function() { component.createOperations(); - if (installer.value("os") == "win") { - try { - if (installer.value("SDKToolBinary") == "") - return; + try { + if (installer.value("SDKToolBinary") == "") + return; - var cmId = component.name; - installer.setValue("CMAKE%CMake_VERSION_MAJOR%%CMake_VERSION_MINOR%_ID", cmId); + var cmId = component.name; + installer.setValue("CMAKE%CMake_VERSION_MAJOR%%CMake_VERSION_MINOR%_ID", cmId); - component.addOperation("Execute", - ["{0,2}", "@SDKToolBinary@", "addCMake", - "--id", cmId, - "--name", "%CMake_IFW_ROOT_COMPONENT_DISPLAY_NAME%", - "--path", "@CMAKE%CMake_VERSION_MAJOR%%CMake_VERSION_MINOR%_BIN_DIR@/cmake.exe", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmCMake", "--id", cmId]); + component.addOperation("Execute", + ["{0,2}", "@SDKToolBinary@", "addCMake", + "--id", cmId, + "--name", "%CMake_IFW_ROOT_COMPONENT_DISPLAY_NAME%", + "--path", "@CMAKE%CMake_VERSION_MAJOR%%CMake_VERSION_MINOR%_BIN_DIR@/cmake%CMAKE_EXECUTABLE_SUFFIX%", + "UNDOEXECUTE", + "@SDKToolBinary@", "rmCMake", "--id", cmId]); - } catch( e ) { - print( e ); - } + } catch( e ) { + print( e ); } } |