From ea79ccbee1fc5c7ad5ec3107d4aa264d9cc7bf33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 22 Oct 2021 14:37:53 +0200 Subject: [PATCH] Added igel package creation scripts --- client-py3/full/linux/Makefile | 18 +++++ client-py3/full/linux/build-packages.sh | 3 + .../linux/igel/UDSClient-Profile-template.xml | 69 +++++++++++++++++++ .../full/linux/igel/UDSClient-template.inf | 7 ++ client-py3/full/linux/igel/UDSClient.desktop | 11 +++ client-py3/full/linux/igel/init.sh | 2 + 6 files changed, 110 insertions(+) create mode 100755 client-py3/full/linux/igel/UDSClient-Profile-template.xml create mode 100755 client-py3/full/linux/igel/UDSClient-template.inf create mode 100755 client-py3/full/linux/igel/UDSClient.desktop create mode 100755 client-py3/full/linux/igel/init.sh diff --git a/client-py3/full/linux/Makefile b/client-py3/full/linux/Makefile index c84eba86..68b15a34 100644 --- a/client-py3/full/linux/Makefile +++ b/client-py3/full/linux/Makefile @@ -14,6 +14,8 @@ APPSDIR := $(DESTDIR)/usr/share/applications PYC := $(shell find $(SOURCEDIR) -name '*.py[co]') CACHES := $(shell find $(SOURCEDIR) -name '__pycache__') + + clean: rm -rf $(PYC) $(CACHES) $(DESTDIR) install: @@ -78,3 +80,19 @@ endif # cleanup -rm -rf appimage appimage-builder-cache /tmp/UDSClientDir + +build-igel: + rm -rf $(DESTDIR) + mkdir -p $(DESTDIR) +# Calculate the size of the custom partition (15 megas more than the appimage size) + @$(eval APPIMAGE_SIZE=$(shell du -sm UDSClient-$(VERSION)-x86_64.AppImage | cut -f1)) + @$(eval APPIMAGE_SIZE=$(shell expr $(APPIMAGE_SIZE) + 15)) + cat igel/UDSClient-Profile-template.xml | sed -e s/"_SIZE_"/"$(APPIMAGE_SIZE)M"/g > $(DESTDIR)/UDSClient-Profile.xml + cat igel/UDSClient-template.inf | sed -e s/"_SIZE_"/"$(APPIMAGE_SIZE)M"/g > $(DESTDIR)/UDSClient.inf + cp UDSClient-$(VERSION)-x86_64.AppImage $(DESTDIR)/UDSClient + cp igel/UDSClient.desktop $(DESTDIR)/UDSClient.desktop + cp igel/init.sh $(DESTDIR)/init.sh + tar cjvf $(DESTDIR)/UDSClient.tar.bz2 -C $(DESTDIR) UDSClient UDSClient.desktop init.sh + zip -j ../udsclient3-$(VERSION)-igel.zip $(DESTDIR)/UDSClient-Profile.xml $(DESTDIR)/UDSClient.inf $(DESTDIR)/UDSClient.tar.bz2 + cd .. + rm -rf $(DESTDIR) diff --git a/client-py3/full/linux/build-packages.sh b/client-py3/full/linux/build-packages.sh index 375f4170..00f214da 100755 --- a/client-py3/full/linux/build-packages.sh +++ b/client-py3/full/linux/build-packages.sh @@ -43,5 +43,8 @@ make DESTDIR=appimage DISTRO=x86_64 VERSION=${VERSION} build-appimage make DESTDIR=appimage DISTRO=armhf VERSION=${VERSION} build-appimage make DESTDIR=appimage DISTRO=i686 VERSION=${VERSION} build-appimage +# Now create igel version +# we need first to create the Appimage for x86_64 +make DESTDIR=igelimage DISTRO=x86_64 VERSION=${VERSION} build-igel rpm --addsign ../*rpm diff --git a/client-py3/full/linux/igel/UDSClient-Profile-template.xml b/client-py3/full/linux/igel/UDSClient-Profile-template.xml new file mode 100755 index 00000000..eb436c90 --- /dev/null +++ b/client-py3/full/linux/igel/UDSClient-Profile-template.xml @@ -0,0 +1,69 @@ + + + 1126 + UDSClient + + IGEL OS 11 + 11.05.120.01 + + + false + false + true + + + true + false + + + false + false + + + /UDSClient + false + + + _SIZE_ + false + + + + + false + 000d4317311f2c0031133c4d3e4c3d + + /UDSClient/init.sh + + http://192.168.11.121:9080/ums_filetransfer/UDSClient-igel.inf + vc + + + 1 + https://demo.udsenterprise.com + true + + false + false + false + true + + + None + chromium + + ###LOC_DEFAULT### + 0 + false + none + false + false + true + true + false + false + 0 + 0 + + + diff --git a/client-py3/full/linux/igel/UDSClient-template.inf b/client-py3/full/linux/igel/UDSClient-template.inf new file mode 100755 index 00000000..f6dcddf1 --- /dev/null +++ b/client-py3/full/linux/igel/UDSClient-template.inf @@ -0,0 +1,7 @@ +[INFO] +[PART] +file="UDSClient-igel.tar.bz2" +version="1.1_igel1" +size="_SIZE_" +name="UDSClient" +minfw="11.05.120" diff --git a/client-py3/full/linux/igel/UDSClient.desktop b/client-py3/full/linux/igel/UDSClient.desktop new file mode 100755 index 00000000..59626687 --- /dev/null +++ b/client-py3/full/linux/igel/UDSClient.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=UDSClient +Comment=UDS Helper +Keywords=uds;client;vdi; +Exec=/UDSClient/UDSClient %u +Icon=help-browser +StartupNotify=true +Terminal=false +Type=Application +Categories=Utility; +MimeType=x-scheme-handler/uds;x-scheme-handler/udss; diff --git a/client-py3/full/linux/igel/init.sh b/client-py3/full/linux/igel/init.sh new file mode 100755 index 00000000..620e0248 --- /dev/null +++ b/client-py3/full/linux/igel/init.sh @@ -0,0 +1,2 @@ +#!/bin/sh +cp /UDSClient/UDSClient.desktop /usr/share/applications.mime