[ci,nightly] add a script to build an RPM nightly
This commit is contained in:
parent
e7414ef635
commit
75c2e9f6a5
11
packaging/scripts/create_rpm.sh
Executable file
11
packaging/scripts/create_rpm.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user