2020-03-10 16:04:27 +03:00
#!/bin/bash
VERSION = ` cat ../../../VERSION`
RELEASE = 1
# Debian based
dpkg-buildpackage -b
# Now rpm based
top = ` pwd `
cat udsclient-template.spec |
sed -e s/"version 0.0.0" /" version ${ VERSION } " /g |
sed -e s/"release 1" /" release ${ RELEASE } " /g > udsclient-$VERSION .spec
2021-06-10 18:02:11 +03:00
cat appimage-udsclient.recipe |
sed -e s/"version: 0.0.0" /" version: ${ VERSION } " /g > appimage.recipe
2020-03-10 16:04:27 +03:00
# Now fix dependencies for opensuse
2020-06-24 04:01:04 +03:00
# Note: Right now, opensuse & rh seems to have same dependencies, only 1 package needed
# cat udsclient-template.spec |
# sed -e s/"version 0.0.0"/"version ${VERSION}"/g |
# sed -e s/"name udsclient3"/"name udsclient3-opensuse"/g > udsclient-opensuse-$VERSION.spec
2020-03-10 16:04:27 +03:00
# Right now, udsactor-xrdp-.spec is not needed
2020-06-24 04:01:04 +03:00
# for pkg in udsclient-$VERSION.spec udsclient-opensuse-$VERSION.spec; do
for pkg in udsclient-$VERSION .spec; do
2020-03-10 16:04:27 +03:00
rm -rf rpm
for folder in SOURCES BUILD RPMS SPECS SRPMS; do
mkdir -p rpm/$folder
done
rpmbuild -v -bb --clean --buildroot= $top /rpm/BUILD/$pkg -root --target noarch $pkg 2>& 1
done
#rm udsclient-$VERSION
2021-06-10 18:02:11 +03:00
# Make .tar.gz with source
2020-03-10 16:04:27 +03:00
make DESTDIR = targz DISTRO = targz VERSION = ${ VERSION } install
2020-09-24 17:33:00 +03:00
2021-06-10 18:25:23 +03:00
# And make FULL CLIENT .tar.gz for x86 and raspberry
2021-06-16 19:28:10 +03:00
make DESTDIR = appimage DISTRO = x86_64 VERSION = ${ VERSION } build-appimage
make DESTDIR = appimage DISTRO = armhf VERSION = ${ VERSION } build-appimage
2021-06-17 19:32:22 +03:00
make DESTDIR = appimage DISTRO = i686 VERSION = ${ VERSION } build-appimage
2021-06-10 18:25:23 +03:00
2021-06-10 18:02:11 +03:00
2020-09-24 17:33:00 +03:00
rpm --addsign ../*rpm