From 32debd36e8a2b5d7e5b0ba14c5076940e15fdce2 Mon Sep 17 00:00:00 2001 From: Jacob Oursland Date: Sun, 11 May 2025 23:50:00 -0700 Subject: [PATCH] CI: use the weekly build tag in title bar of main window. --- package/rattler-build/scripts/make_version_file.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/rattler-build/scripts/make_version_file.py b/package/rattler-build/scripts/make_version_file.py index cf74e51f8e..cc17ecd885 100755 --- a/package/rattler-build/scripts/make_version_file.py +++ b/package/rattler-build/scripts/make_version_file.py @@ -11,9 +11,12 @@ import SubWCRev gitInfo = SubWCRev.GitControl() gitInfo.extractInfo("","") +gitDescription = os.environ['BUILD_TAG'] + i = open("src/Build/Version.h.cmake") content = [] for line in i.readlines(): + line = line.replace("-${PACKAGE_VERSION_SUFFIX}",gitDescription) line = line.replace("${PACKAGE_WCREF}",gitInfo.rev) line = line.replace("${PACKAGE_WCDATE}",gitInfo.date) line = line.replace("${PACKAGE_WCURL}",gitInfo.url) @@ -36,6 +39,6 @@ p = subprocess.Popen(["git", "-c", "user.name='github-actions[bot]'", "-c", "use "commit", "-a", "-m", "add git information"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() - + print(out.decode()) print(err.decode())