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++

Implement transitional versioning for MSI on Windows

Dmitry Kazakovbabd4cb6a984
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6626a78c6b..64fee6c33c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -151,6 +151,17 @@ set(KRITA_VERSION_RELEASE 0)
# - Beta: Starts from 50, increment 1 per release
# - Stable: Set to 100, bump to 101 if emergency update is needed
set(KRITA_VERSION_REVISION 0)
+
+# In MSI packages we cannot use the fourth digit for release numbering,
+# since this digit is used by Microsoft Store internally. Hence we cannot
+# release hotfix releases (like 6.0.1.1, 6.0.1.2) on Windows. Therefore we
+# use the same approach as on Android, we just number all the official
+# releases in the same X.Y.* branch sequentially.
+#
+# Krita 5.3.2.1 was released with version '3', increment on releasing
+#
+set(KRITA_MSI_VERSION_RELEASE_TRANSITIONAL 3)
+
# Uncomment the following if this is currently in the "stable" branch.
# Do not uncomment for master branch.
#set(KRITA_STABLE_BRANCH 1)
diff --git a/packaging/windows/msix/manifest.xml.in b/packaging/windows/msix/manifest.xml.in
index b796c6be51..c7dacbe7a3 100644
--- a/packaging/windows/msix/manifest.xml.in
+++ b/packaging/windows/msix/manifest.xml.in
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap2="http://schemas.microsoft.com/appx/manifest/uap/windows10/2" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:uap4="http://schemas.microsoft.com/appx/manifest/uap/windows10/4" xmlns:uap6="http://schemas.microsoft.com/appx/manifest/uap/windows10/6" xmlns:uap7="http://schemas.microsoft.com/appx/manifest/uap/windows10/7" xmlns:uap8="http://schemas.microsoft.com/appx/manifest/uap/windows10/8" xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10" xmlns:mobile="http://schemas.microsoft.com/appx/manifest/mobile/windows10" xmlns:iot="http://schemas.microsoft.com/appx/manifest/iot/windows10" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" xmlns:desktop2="http://schemas.microsoft.com/appx/manifest/desktop/windows10/2" xmlns:desktop3="http://schemas.microsoft.com/appx/manifest/desktop/windows10/3" xmlns:desktop5="http://schemas.microsoft.com/appx/manifest/desktop/windows10/5" xmlns:desktop6="http://schemas.microsoft.com/appx/manifest/desktop/windows10/6" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:rescap3="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/3" xmlns:rescap6="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/6" xmlns:com="http://schemas.microsoft.com/appx/manifest/com/windows10" xmlns:com2="http://schemas.microsoft.com/appx/manifest/com/windows10/2" xmlns:com3="http://schemas.microsoft.com/appx/manifest/com/windows10/3" IgnorableNamespaces="uap uap2 uap3 uap4 uap6 uap7 uap8 uap10 mobile iot desktop desktop2 desktop3 desktop5 desktop6 rescap rescap3 rescap6 com com2 com3">
<!-- NOTE: The Publisher attr needs to match the code signing certificate. -->
- <Identity Name="49800KritaProject.Krita" Publisher="CN=03E730BB-6849-4762-9BDB-10CD7FFDB2C1" Version="@KRITA_STABLE_VERSION_MAJOR@.@KRITA_STABLE_VERSION_MINOR@.@[email protected]" ProcessorArchitecture="x64" />
+ <Identity Name="49800KritaProject.Krita" Publisher="CN=03E730BB-6849-4762-9BDB-10CD7FFDB2C1" Version="@KRITA_STABLE_VERSION_MAJOR@.@KRITA_STABLE_VERSION_MINOR@.@[email protected]" ProcessorArchitecture="x64" />
<Properties>
<DisplayName>Krita@MSIX_DISPLAY_NAME_SUFFIX@</DisplayName>
<PublisherDisplayName>Krita</PublisherDisplayName>