Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
[macos] Don't add git-sha1 to release packages on MacOS
Dmitry Kazakov83743778ccd4
diff --git a/build-tools/ci-scripts/macos.yml b/build-tools/ci-scripts/macos.ymlindex 3cf18ab52a..605e58bc57 100644--- a/build-tools/ci-scripts/macos.yml+++ b/build-tools/ci-scripts/macos.yml@@ -91,6 +91,7 @@ macos-release:- .ci-release-job-mixininterruptible: falsevariables:+ KRITACI_RELEASE_PACKAGE_NAMING: TrueKDECI_ONLY_BUILD: TrueKDECI_EXTRA_CMAKE_ARGS: >-DHIDE_SAFE_ASSERTS=ONdiff --git a/packaging/macos/osxdeploy.sh b/packaging/macos/osxdeploy.shindex e171b5e860..880cba0752 100755--- a/packaging/macos/osxdeploy.sh+++ b/packaging/macos/osxdeploy.sh@@ -87,6 +87,13 @@ export QMAKE_MACOSX_DEPLOYMENT_TARGET=10.14KRITA_VERSION="$(${KIS_INSTALL_DIR}/bin/krita_version -v)"+if [[ -n $KRITACI_RELEASE_PACKAGE_NAMING ]]; then+ # remove git-sha1, which is split with the space char+ KRITA_VERSION=${KRITA_VERSION% [a-f0-9]*}+else+ # merge version and git-sha1 for non-release versions+ KRITA_VERSION=${KRITA_VERSION// /-}+fiprint_usage () {printf "USAGE:@@ -799,7 +806,7 @@ createDMG () {if [[ -z "${DMG_NAME}" ]]; then# Add git version number- DMG_NAME="krita-${KRITA_VERSION// /_}.dmg"+ DMG_NAME="krita-${KRITA_VERSION}.dmg"elseDMG_NAME="${DMG_NAME}.dmg"fi