Skip to content

Commit

Permalink
For release 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon committed May 19, 2022
1 parent a1ad308 commit 63b759d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions make_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if [ "$1" != "only_clean" ] ; then
echo "Building DEB package"
# Create sources for DEB package
python3 setup.py --command-packages=stdeb.command bdist_deb
# find thingsboard_gateway/ -name "*.pyc" -exec rm -f {} \;
#find thingsboard_gateway/ -name "*.pyc" -exec rm -f {} \;
echo 1
# Adding the files, scripts and permissions
cp -r for_build/etc deb_dist/thingsboard-gateway-$CURRENT_VERSION/debian/python3-thingsboard-gateway
Expand All @@ -57,9 +57,9 @@ if [ "$1" != "only_clean" ] ; then
cp deb_dist/thingsboard-gateway-$CURRENT_VERSION/debian/python3-thingsboard-gateway.deb .
# Create sources for RPM Package
echo 'Building RPM package'
# find thingsboard_gateway/ -name "*.pyc" -exec rm -f {} \;
#find thingsboard_gateway/ -name "*.pyc" -exec rm -f {} \;
python3 setup.py bdist_rpm
# find thingsboard_gateway/ -name "*.pyc" -exec rm -f {} \;
#find thingsboard_gateway/ -name "*.pyc" -exec rm -f {} \;
cp build/bdist.linux-x86_64/rpm/* /home/$CURRENT_USER/rpmbuild/ -r
# Adding the file, scripts and permissions
cp for_build/etc/systemd/system/thingsboard-gateway.service /home/$CURRENT_USER/rpmbuild/SOURCES/
Expand All @@ -77,4 +77,4 @@ if [ "$1" != "only_clean" ] ; then
cp /home/$CURRENT_USER/rpmbuild/RPMS/noarch/*.rpm .
mv thingsboard-gateway-$CURRENT_VERSION-1.noarch.rpm python3-thingsboard-gateway.rpm
chown $CURRENT_USER. *.rpm
fi
fi
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

VERSION = "3.0.1"
VERSION = "3.1"

setup(
version=VERSION,
Expand Down
4 changes: 2 additions & 2 deletions thingsboard-gateway.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%define name thingsboard-gateway
%define version 3.0.1
%define unmangled_version 3.0.1
%define version 3.1
%define unmangled_version 3.1
%define release 1

Summary: Thingsboard Gateway for IoT devices.
Expand Down

0 comments on commit 63b759d

Please sign in to comment.