[ci,nightly] add a script to build an RPM nightly

This commit is contained in:
akallabeth 2024-10-25 14:00:48 +02:00
parent e7414ef635
commit 75c2e9f6a5
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

11
packaging/scripts/create_rpm.sh Executable file
View File

@ -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"