forked from shaba/openuds
Created portable udsclient using appimage. Now also for raspberry pi
This commit is contained in:
parent
594d431af7
commit
0dce270a9e
@ -52,16 +52,20 @@ uninstall:
|
|||||||
# rm -rf $(CFGDIR)
|
# rm -rf $(CFGDIR)
|
||||||
|
|
||||||
build-appimage:
|
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
|
appimage-builder --recipe appimage.recipe
|
||||||
# Now create dist and move appimage
|
# Now create dist and move appimage
|
||||||
rm -rf $(DESTDIR)
|
rm -rf $(DESTDIR)
|
||||||
mkdir -p $(DESTDIR)
|
mkdir -p $(DESTDIR)
|
||||||
cp UDSClient-$(VERSION)-x86_64.AppImage $(DESTDIR)
|
cp UDSClient-$(VERSION)-$(DISTRO).AppImage $(DESTDIR)
|
||||||
# Generate the .desktop fixed for new path
|
# 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
|
# And also, generater installer
|
||||||
cat installer-appimage-template.sh | sed -e s/"0.0.0"/"$(VERSION)"/g > $(DESTDIR)/installer.sh
|
cat installer-appimage-template.sh | sed -e s/"0.0.0"/"$(VERSION)"/g > $(DESTDIR)/installer.sh
|
||||||
chmod 755 $(DESTDIR)/installer.sh
|
chmod 755 $(DESTDIR)/installer.sh
|
||||||
tar czvf ../udsclient3-portable-$(VERSION).tar.gz -C $(DESTDIR) .
|
tar czvf ../udsclient3-$(DISTRO)-$(VERSION).tar.gz -C $(DESTDIR) .
|
||||||
# Now
|
|
||||||
|
@ -38,7 +38,9 @@ done
|
|||||||
# Make .tar.gz with source
|
# Make .tar.gz with source
|
||||||
make DESTDIR=targz DISTRO=targz VERSION=${VERSION} install
|
make DESTDIR=targz DISTRO=targz VERSION=${VERSION} install
|
||||||
|
|
||||||
# And make portable .tar.gz
|
# And make FULL CLIENT .tar.gz for x86 and raspberry
|
||||||
make DESTDIR=appimage DISTRO=appimage VERSION=${VERSION} build-appimage
|
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
|
rpm --addsign ../*rpm
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo "Installing UDSClient portable..."
|
echo "Installing UDSClient..."
|
||||||
|
|
||||||
cp UDSClient-0.0.0-x86_64.AppImage /usr/bin
|
cp UDSClient-0.0.0-x86_64.AppImage /usr/bin
|
||||||
cp UDSClient.desktop /usr/share/applications
|
cp UDSClient.desktop /usr/share/applications
|
||||||
|
@ -39,6 +39,7 @@ AppDir:
|
|||||||
- python3-paramiko
|
- python3-paramiko
|
||||||
- python3-cryptography
|
- python3-cryptography
|
||||||
- freerdp2-x11
|
- freerdp2-x11
|
||||||
|
- x2goclient
|
||||||
exclude: []
|
exclude: []
|
||||||
|
|
||||||
runtime:
|
runtime:
|
Loading…
Reference in New Issue
Block a user