From 2a67f9c39ce0fff901da9fc7d9e8199bc9090dc5 Mon Sep 17 00:00:00 2001 From: madonuko Date: Wed, 23 Oct 2024 22:58:30 +0800 Subject: [PATCH] fix(update): stardust-server --- anda/stardust/server/stardust-server.spec | 4 ++++ anda/stardust/server/update.rhai | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/anda/stardust/server/stardust-server.spec b/anda/stardust/server/stardust-server.spec index 3b27481f0b..d0f3820540 100644 --- a/anda/stardust/server/stardust-server.spec +++ b/anda/stardust/server/stardust-server.spec @@ -1,3 +1,7 @@ +%global commit 9546a362000bf4afa80591ea6099bcd326464f89 +%global commit_date 20240916 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +# Exclude input files from mangling %global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$ Name: stardust-server diff --git a/anda/stardust/server/update.rhai b/anda/stardust/server/update.rhai index 89a05318d8..16db710969 100644 --- a/anda/stardust/server/update.rhai +++ b/anda/stardust/server/update.rhai @@ -1 +1,5 @@ -rpm.version(gh("StardustXR/server")); +rpm.global("commit", gh_commit("StardustXR/server")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}