Return hyprland version into version
Some checks failed
Build hyprland-git / Build and push image (push) Failing after 4m50s
Some checks failed
Build hyprland-git / Build and push image (push) Failing after 4m50s
This commit is contained in:
@@ -12,10 +12,8 @@
|
||||
|
||||
%global libxkbcommon_version 1.11.0
|
||||
|
||||
%global hyprland_version 0.52.2
|
||||
|
||||
Name: hyprland-git
|
||||
Version: %{hyprland_version}%{?bumpver:^%{bumpver}.git%{hyprland_shortcommit}}
|
||||
Version: 0.52.2%{?bumpver:^%{bumpver}.git%{hyprland_shortcommit}}
|
||||
Release: %autorelease
|
||||
Summary: Dynamic tiling Wayland compositor that doesn't sacrifice on its looks
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ set -euxo pipefail
|
||||
|
||||
curl_opts=(--connect-timeout 10 --retry 7 --retry-connrefused -Ss -X POST)
|
||||
|
||||
oldHyprlandVersion="$(sed -n 's/.*hyprland_version \(.*\)/\1/p' hyprland-git.spec)"
|
||||
oldHyprlandVersion="$(sed -n 's/Version: \(.*\)/\1/p' hyprland-git.spec | grep -Eow "[\.0-9]+")"
|
||||
newHyprlandVersion="$(curl -L \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
@@ -48,5 +48,5 @@ sed -e "s/$oldHyprlandCommit/$newHyprlandCommit/" \
|
||||
-e "s/$oldCommitDate/$newCommitDate/" \
|
||||
-e "s/$oldProtocolsCommit/$newProtocolsCommit/" \
|
||||
-e "s/$oldUdis86Commit/$newUdis86Commit/" \
|
||||
-e "/%global hyprland_version/s/$oldHyprlandVersion/$newHyprlandVersion/" \
|
||||
-e "/Version: /s/$oldHyprlandVersion/$newHyprlandVersion/" \
|
||||
-i hyprland-git.spec
|
||||
|
||||
Reference in New Issue
Block a user