From f158235f1628443bd5067235f4c7da894826fbc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 8 Mar 2023 13:28:40 +0100 Subject: [PATCH] fixes to allow rgeneration of clients --- client-py3/full/linux/Makefile | 6 +++--- .../linux/udsclient-appimage-x86_64.recipe | 21 +++++++++---------- server/src/uds/REST/methods/client.py | 6 +++--- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/client-py3/full/linux/Makefile b/client-py3/full/linux/Makefile index 8f921234b..6a3d029bd 100644 --- a/client-py3/full/linux/Makefile +++ b/client-py3/full/linux/Makefile @@ -64,9 +64,9 @@ ifeq ($(DISTRO),i686) cat udsclient-appimage-x86_64.recipe | sed -e s/"version: 0.0.0"/"version: $(VERSION)"/g | sed -e s/amd64/i386/g | sed -e s/x86_64/i686/g > appimage.recipe endif # Ensure all working folders are "clean" - -rm -rf appimage appimage-builder-cache /tmp/UDSClientDir + -rm -rf appimage appimage-builder-cache /tmp/UDSClientDir appimage-build AppDir - appimage-builder --recipe appimage.recipe + appimage-builder --recipe appimage.recipe --appdir /tmp/UDSClientDir # Now create dist and move appimage rm -rf $(DESTDIR) mkdir -p $(DESTDIR) @@ -79,7 +79,7 @@ endif tar czvf ../udsclient3-$(DISTRO)-$(VERSION).tar.gz -C $(DESTDIR) . # cleanup - -rm -rf appimage appimage-builder-cache /tmp/UDSClientDir + -rm -rf appimage appimage-builder-cache /tmp/UDSClientDir appimage-build AppDir build-igel: rm -rf $(DESTDIR) diff --git a/client-py3/full/linux/udsclient-appimage-x86_64.recipe b/client-py3/full/linux/udsclient-appimage-x86_64.recipe index eb7559ba9..c0cabd1df 100644 --- a/client-py3/full/linux/udsclient-appimage-x86_64.recipe +++ b/client-py3/full/linux/udsclient-appimage-x86_64.recipe @@ -1,18 +1,17 @@ version: 1 script: # Remove any previous build - - rm -rf /tmp/UDSClientDir | true + - rm -rf $TARGET_APPDIR | true # Make usr and icons dirs - - mkdir -p /tmp/UDSClientDir/usr/src + - mkdir -p $TARGET_APPDIR/usr/src # Copy the python application code into the UDSClientDir - - cp ../src/UDS*.py /tmp/UDSClientDir/usr/src - - cp -r ../src/uds /tmp/UDSClientDir/usr/src + - cp ../src/UDS*.py $TARGET_APPDIR/usr/src + - cp -r ../src/uds $TARGET_APPDIR/usr/src # Remove __pycache__ and .mypy if exists - - rm /tmp/UDSClientDir/usr/src/.mypy_cache -rf 2>&1 > /dev/null - - rm /tmp/UDSClientDir/usr/src/uds/.mypy_cache -rf 2>&1 > /dev/null - - rm /tmp/UDSClientDir/usr/src/__pycache__ -rf 2>&1 > /dev/null - - rm /tmp/UDSClientDir/usr/src/uds/__pycache__ -rf 2>&1 > /dev/null - + - rm $TARGET_APPDIR/usr/src/.mypy_cache -rf 2>&1 > /dev/null + - rm $TARGET_APPDIR/usr/src/uds/.mypy_cache -rf 2>&1 > /dev/null + - rm $TARGET_APPDIR/usr/src/__pycache__ -rf 2>&1 > /dev/null + - rm $TARGET_APPDIR/usr/src/uds/__pycache__ -rf 2>&1 > /dev/null AppDir: # On /tmp, that is an ext4 filesystem. On btrfs squashfs complains with "Unrecognised xattr prefix btrfs.compression" path: /tmp/UDSClientDir @@ -57,6 +56,6 @@ AppDir: PYTHONPATH: '${APPDIR}/usr/lib/python3.9/site-packages' AppImage: - update-information: None - sign-key: None + # update-information: None + sign-key: 592AF43A64B8559137FA2458AA4ECFEE784E6BA7 arch: x86_64 diff --git a/server/src/uds/REST/methods/client.py b/server/src/uds/REST/methods/client.py index ffb09bae8..f198d37b7 100644 --- a/server/src/uds/REST/methods/client.py +++ b/server/src/uds/REST/methods/client.py @@ -51,9 +51,9 @@ if typing.TYPE_CHECKING: logger = logging.getLogger(__name__) -CLIENT_VERSION = UDS_VERSION -REQUIRED_CLIENT_VERSION = '3.5.0' - +#CLIENT_VERSION = UDS_VERSION +REQUIRED_CLIENT_VERSION = '3.5.1' +CLIENT_VERSION = REQUIRED_CLIENT_VERSION # Enclosed methods under /client path