fix: bad update scripts again

This commit is contained in:
madonuko
2026-07-03 00:32:48 +08:00
parent 246675d965
commit bcd8ed635c
5 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -3,12 +3,12 @@
Name: astra
%electronmeta -D
Version: %(echo %ver | sed 's/-/~/')
Version: %(echo %ver | sed 's/-/~/;s/^v//')
Release: 1%?dist
Summary: A desktop music player for people who still have a music library
License: GPL-3.0-only AND %electron_license
URL: https://astramusic.dev
Source0: https://github.com/Boof2015/astra/archive/refs/tags/v%ver.tar.gz
Source0: https://github.com/Boof2015/astra/archive/refs/tags/%ver.tar.gz
BuildRequires: nodejs-npm nodejs-packaging
%description
+1 -1
View File
@@ -1,5 +1,5 @@
Name: bup
Version: bup.0.25.rc2
Version: 0.33.10
Release: 1%{?dist}
Summary: Efficient backup system based on the git packfile format
License: LGPL-2.0-only
+3 -1
View File
@@ -1 +1,3 @@
rpm.version(gh_tag("bup/bup"));
let v = gh_tag("bup/bup");
v.crop(4);
rpm.version(v);
+1 -1
View File
@@ -2,7 +2,7 @@
%global commit_date 20260702
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global ver v1.0
%global ver 1.0
Name: miraclecast
Version: %{ver}^%{commit_date}git.%{shortcommit}
+3 -1
View File
@@ -1,4 +1,6 @@
rpm.global("ver", gh_tag("albfan/miraclecast"));
let ver = gh_tag("albfan/miraclecast");
ver.crop(1);
rpm.global("ver", ver);
rpm.global("commit", gh_commit("albfan/miraclecast"));
if rpm.changed() {