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".
This commit is contained in:
Florian Müllner
2021-03-20 13:35:05 +01:00
parent 20540cb843
commit 8aa645ae5d
+1 -5
View File
@@ -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'