From 75c2e9f6a5d83bba58010974ff85c35c9e771e0e Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 25 Oct 2024 14:00:48 +0200 Subject: [PATCH] [ci,nightly] add a script to build an RPM nightly --- packaging/scripts/create_rpm.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 packaging/scripts/create_rpm.sh diff --git a/packaging/scripts/create_rpm.sh b/packaging/scripts/create_rpm.sh new file mode 100755 index 000000000..384233d05 --- /dev/null +++ b/packaging/scripts/create_rpm.sh @@ -0,0 +1,11 @@ +#!/bin/bash -xe +# +# Create a RPM package +SCRIPT_PATH=$(dirname "${BASH_SOURCE[0]}") +SCRIPT_PATH=$(realpath "$SCRIPT_PATH") + +mkdir -p ~/rpmbuild/SOURCES/ +git archive --format=tar HEAD --output ~/rpmbuild/SOURCES/freerdp-nightly-3.0.tar.bz2 --prefix=freerdp-nightly-3.0/ +$SCRIPT_PATH/prepare_rpm_freerdp-nightly.sh +cp source_version ~/rpmbuild/SOURCES/ +rpmbuild -ba "$SCRIPT_PATH/../rpm/freerdp-nightly.spec"