diff --git a/make_packages.sh b/make_packages.sh index a413a9d4a..c0ef3c554 100755 --- a/make_packages.sh +++ b/make_packages.sh @@ -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 @@ -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/ @@ -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 \ No newline at end of file +fi diff --git a/setup.py b/setup.py index 46376d7d0..b342e8bff 100644 --- a/setup.py +++ b/setup.py @@ -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, diff --git a/thingsboard-gateway.spec b/thingsboard-gateway.spec index 50ad8a7f7..a4aa70ac9 100644 --- a/thingsboard-gateway.spec +++ b/thingsboard-gateway.spec @@ -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.