Skip to content

armgit / krita

Public Imported from GitHub
0

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.yml
index 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-mixin
interruptible: false
variables:
+ KRITACI_RELEASE_PACKAGE_NAMING: True
KDECI_ONLY_BUILD: True
KDECI_EXTRA_CMAKE_ARGS: >
-DHIDE_SAFE_ASSERTS=ON
diff --git a/packaging/macos/osxdeploy.sh b/packaging/macos/osxdeploy.sh
index e171b5e860..880cba0752 100755
--- a/packaging/macos/osxdeploy.sh
+++ b/packaging/macos/osxdeploy.sh
@@ -87,6 +87,13 @@ export QMAKE_MACOSX_DEPLOYMENT_TARGET=10.14
KRITA_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// /-}
+fi
print_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"
else
DMG_NAME="${DMG_NAME}.dmg"
fi