Return hyprland version into version
Some checks failed
Build hyprland-git / Build and push image (push) Failing after 4m50s

This commit is contained in:
2025-12-08 12:00:46 -05:00
parent 610d053b12
commit 3edbff7ef6
2 changed files with 3 additions and 5 deletions

View File

@@ -12,10 +12,8 @@
%global libxkbcommon_version 1.11.0 %global libxkbcommon_version 1.11.0
%global hyprland_version 0.52.2
Name: hyprland-git Name: hyprland-git
Version: %{hyprland_version}%{?bumpver:^%{bumpver}.git%{hyprland_shortcommit}} Version: 0.52.2%{?bumpver:^%{bumpver}.git%{hyprland_shortcommit}}
Release: %autorelease Release: %autorelease
Summary: Dynamic tiling Wayland compositor that doesn't sacrifice on its looks Summary: Dynamic tiling Wayland compositor that doesn't sacrifice on its looks

View File

@@ -3,7 +3,7 @@ set -euxo pipefail
curl_opts=(--connect-timeout 10 --retry 7 --retry-connrefused -Ss -X POST) 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 \ newHyprlandVersion="$(curl -L \
-H "Accept: application/vnd.github+json" \ -H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \ -H "X-GitHub-Api-Version: 2022-11-28" \
@@ -48,5 +48,5 @@ sed -e "s/$oldHyprlandCommit/$newHyprlandCommit/" \
-e "s/$oldCommitDate/$newCommitDate/" \ -e "s/$oldCommitDate/$newCommitDate/" \
-e "s/$oldProtocolsCommit/$newProtocolsCommit/" \ -e "s/$oldProtocolsCommit/$newProtocolsCommit/" \
-e "s/$oldUdis86Commit/$newUdis86Commit/" \ -e "s/$oldUdis86Commit/$newUdis86Commit/" \
-e "/%global hyprland_version/s/$oldHyprlandVersion/$newHyprlandVersion/" \ -e "/Version: /s/$oldHyprlandVersion/$newHyprlandVersion/" \
-i hyprland-git.spec -i hyprland-git.spec