[gnome-shell-extensions] build: Adjust shell-version



commit 8aa645ae5dcb7bf24d218fb0c61b6fb88c0e4286
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Mar 20 13:35:05 2021 +0100

    build: Adjust shell-version
    
    With the new version scheme, only the major version is relevant as
    far as gnome-shell is concerned. However the extension website does
    not handle that at the moment, so always append a ".0".

 meson.build | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/meson.build b/meson.build
index 7c9c16d..91cb683 100644
--- a/meson.build
+++ b/meson.build
@@ -22,11 +22,7 @@ sessiondir = join_paths(datadir, 'gnome-session', 'sessions')
 xsessiondir = join_paths(datadir, 'xsessions')
 
 ver_arr = meson.project_version().split('.')
-if ver_arr[1].version_compare('>=0')
-  shell_version = ver_arr[0]
-else # pre-release (alpha, beta, rc)
-  shell_version = '.'.join(ver_arr)
-endif
+shell_version = '@0@.0'.format(ver_arr[0])
 
 uuid_suffix = '@gnome-shell-extensions.gcampax.github.com'
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]