Fix: xpadneo and xone update scripts (#3641) (#3650)

* New update scripts

* Add missing semicolons

(cherry picked from commit b535009b6e)

Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Raboneko
2025-03-01 18:25:35 -08:00
committed by GitHub
parent db88541797
commit 4644adfc25
8 changed files with 52 additions and 12 deletions
+12 -2
View File
@@ -1,3 +1,13 @@
import "andax/bump_extras.rhai" as bump;
let c = sh("cat anda/system/xone/kmod-common/xone-kmod-common.spec | grep '%global commit' | sed -E 's/.+commit //'", #{"stdout": "piped"}).ctx.stdout;
c.pop();
rpm.global("commit", c);
if rpm.changed() {
rpm.release();
let d = sh("cat anda/system/xone/kmod-common/xone-kmod-common.spec | grep '%global date' | sed -E 's/.+date //'", #{"stdout": "piped"}).ctx.stdout;
d.pop();
rpm.global("date", d);
let v = sh("cat anda/system/xone/kmod-common/xone-kmod-common.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
v.pop();
rpm.global("ver", v);
}
rpm.version(bump::madoguchi("xone-kmod-common", labels.branch));
+1 -1
View File
@@ -7,7 +7,7 @@
%global real_name xone
Name: %{real_name}-kmod
Version: 0.3^20241223git.6b9d59a
Version: %{ver}^%{date}git.%{shortcommit}
Release: 1%?dist
Summary: Linux kernel driver for Xbox One and Xbox Series X|S accessories
License: GPL-2.0-or-later
+1 -1
View File
@@ -6,7 +6,7 @@
%global dkms_name xone
Name: dkms-%{dkms_name}
Version: 0.3^20241223git.6b9d59a
Version: %{ver}^%{date}git.%{shortcommit}
Release: 1%?dist
Summary: Linux kernel driver for Xbox One and Xbox Series X|S accessories
License: GPL-2.0-or-later
+12 -2
View File
@@ -1,3 +1,13 @@
import "andax/bump_extras.rhai" as bump;
let c = sh("cat anda/system/xone/kmod-common/xone-kmod-common.spec | grep '%global commit' | sed -E 's/.+commit //'", #{"stdout": "piped"}).ctx.stdout;
c.pop();
rpm.global("commit", c);
if rpm.changed() {
rpm.release();
let d = sh("cat anda/system/xone/kmod-common/xone-kmod-common.spec | grep '%global date' | sed -E 's/.+date //'", #{"stdout": "piped"}).ctx.stdout;
d.pop();
rpm.global("date", d);
let v = sh("cat anda/system/xone/kmod-common/xone-kmod-common.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
v.pop();
rpm.global("ver", v);
}
rpm.version(bump::madoguchi("xone-kmod-common", labels.branch));
+12 -2
View File
@@ -1,3 +1,13 @@
import "andax/bump_extras.rhai" as bump;
let c = sh("cat anda/system/xpadneo/kmod-common/xpadneo-kmod-common.spec | grep '%global commit' | sed -E 's/.+commit //'", #{"stdout": "piped"}).ctx.stdout;
c.pop();
rpm.global("commit", c);
if rpm.changed() {
rpm.release();
let d = sh("cat anda/system/xpadneo/kmod-common/xpadneo-kmod-common.spec | grep '%global date' | sed -E 's/.+date //'", #{"stdout": "piped"}).ctx.stdout;
d.pop();
rpm.global("date", d);
let v = sh("cat anda/system/xpadneo/kmod-common/xpadneo-kmod-common.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
v.pop();
rpm.global("ver", v);
}
rpm.version(bump::madoguchi("xpadneo-kmod-common", labels.branch));
+1 -1
View File
@@ -7,7 +7,7 @@
%global real_name xpadneo
Name: %{real_name}-kmod
Version: 0.9.7^20241224git.8d20a23
Version: %{ver}^%{date}git.%{shortcommit}
Release: 1%?dist
Summary: Advanced Linux Driver for Xbox One Wireless Gamepad
License: GPL-3.0
+1 -1
View File
@@ -6,7 +6,7 @@
%global dkms_name xpadneo
Name: dkms-%{dkms_name}
Version: 0.9.7^20241224git.8d20a23
Version: %{ver}^%{date}git.%{shortcommit}
Release: 1%?dist
Summary: Advanced Linux Driver for Xbox One Wireless Gamepad
License: GPL-3.0
+12 -2
View File
@@ -1,3 +1,13 @@
import "andax/bump_extras.rhai" as bump;
let c = sh("cat anda/system/xpadneo/kmod-common/xpadneo-kmod-common.spec | grep '%global commit' | sed -E 's/.+commit //'", #{"stdout": "piped"}).ctx.stdout;
c.pop();
rpm.global("commit", c);
if rpm.changed() {
rpm.release();
let d = sh("cat anda/system/xpadneo/kmod-common/xpadneo-kmod-common.spec | grep '%global date' | sed -E 's/.+date //'", #{"stdout": "piped"}).ctx.stdout;
d.pop();
rpm.global("date", d);
let v = sh("cat anda/system/xpadneo/kmod-common/xpadneo-kmod-common.spec | grep '%global ver' | sed -E 's/.+ver //'", #{"stdout": "piped"}).ctx.stdout;
v.pop();
rpm.global("ver", v);
}
rpm.version(bump::madoguchi("xpadneo-kmod-common", labels.branch));