Created portable udsclient using appimage. Now also for raspberry pi

This commit is contained in:
Adolfo Gómez García 2021-06-10 17:25:23 +02:00
parent 594d431af7
commit 0dce270a9e
4 changed files with 15 additions and 8 deletions

View File

@ -52,16 +52,20 @@ uninstall:
# rm -rf $(CFGDIR)
build-appimage:
cat udsclient-appimage.recipe | sed -e s/"version: 0.0.0"/"version: $(VERSION)"/g > appimage.recipe
ifeq ($(DISTRO),x86_64)
cat udsclient-appimage-x86_64.recipe | sed -e s/"version: 0.0.0"/"version: $(VERSION)"/g > appimage.recipe
else
cat udsclient-appimage-x86_64.recipe | sed -e s/"version: 0.0.0"/"version: $(VERSION)"/g | sed -e s/amd64\\\|x86_64/armhf/g > appimage.recipe
endif
appimage-builder --recipe appimage.recipe
# Now create dist and move appimage
rm -rf $(DESTDIR)
mkdir -p $(DESTDIR)
cp UDSClient-$(VERSION)-x86_64.AppImage $(DESTDIR)
cp UDSClient-$(VERSION)-$(DISTRO).AppImage $(DESTDIR)
# Generate the .desktop fixed for new path
cat desktop/UDSClient.desktop | sed -e s/".usr.lib.UDSClient.UDSClient.py"/"\/usr\/bin\/UDSClient-$(VERSION)-x86_64.AppImage"/g > $(DESTDIR)/UDSClient.desktop
cat desktop/UDSClient.desktop | sed -e s/".usr.lib.UDSClient.UDSClient.py"/"\/usr\/bin\/UDSClient-$(VERSION)-$(DISTRO).AppImage"/g > $(DESTDIR)/UDSClient.desktop
# And also, generater installer
cat installer-appimage-template.sh | sed -e s/"0.0.0"/"$(VERSION)"/g > $(DESTDIR)/installer.sh
chmod 755 $(DESTDIR)/installer.sh
tar czvf ../udsclient3-portable-$(VERSION).tar.gz -C $(DESTDIR) .
# Now
tar czvf ../udsclient3-$(DISTRO)-$(VERSION).tar.gz -C $(DESTDIR) .

View File

@ -38,7 +38,9 @@ done
# Make .tar.gz with source
make DESTDIR=targz DISTRO=targz VERSION=${VERSION} install
# And make portable .tar.gz
make DESTDIR=appimage DISTRO=appimage VERSION=${VERSION} build-appimage
# And make FULL CLIENT .tar.gz for x86 and raspberry
make DESTDIR=appimage DISTRO=x86_64 VERSION=${VERSION} build-appimage-x86_64
make DESTDIR=appimage DISTRO=armhf VERSION=${VERSION} build-appimage-x86_64
rpm --addsign ../*rpm

View File

@ -1,6 +1,6 @@
#!/bin/sh
echo "Installing UDSClient portable..."
echo "Installing UDSClient..."
cp UDSClient-0.0.0-x86_64.AppImage /usr/bin
cp UDSClient.desktop /usr/share/applications

View File

@ -39,6 +39,7 @@ AppDir:
- python3-paramiko
- python3-cryptography
- freerdp2-x11
- x2goclient
exclude: []
runtime: