This commit is contained in:
Hans Karlinius
2024-12-05 21:43:39 +01:00
parent 96b92db125
commit 472a1182fa
2 changed files with 7 additions and 6 deletions

View File

@@ -7,19 +7,20 @@ COPY rootfs /
# Install vhclient
ARG VHCLIENT_BASE_URL=https://www.virtualhere.com/sites/default/files/usbclient
#ARG VHCLIENT
RUN echo ${VHCLIENT_BASE_URL}
RUN \
if [ "${BUILD_ARCH}" = "armhf" ]; then \
if [ "$BUILD_ARCH" = "armhf" ]; then \
set VHCLIENT="vhclientarmhf"; \
elif [ "${BUILD_ARCH}" = "aarch64" ]; then \
elif [ "$BUILD_ARCH" = "aarch64" ]; then \
set VHCLIENT="vhclientarm64"; \
elif [ "${BUILD_ARCH}" = "amd64" ]; then \
elif [ "$BUILD_ARCH" = "amd64" ]; then \
set VHCLIENT="vhclientx86_64"; \
elif [ "${BUILD_ARCH}" = "i386" ]; then \
elif [ "$BUILD_ARCH" = "i386" ]; then \
set VHCLIENT="vhclienti386"; \
else \
echo "No vhclient exists for build arch"; \
exit 1; \
fi \
echo ${VHCLIENT} \
echo $VHCLIENT \
#curl -sSLf -o /usr/bin/vhclient $VHCLIENT_BASE_URL/$VHCLIENT
RUN chmod a+x /usr/bin/vhclient

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.372"
version: "0.1.373"
slug: vhclient
description: VirtualHere Client
arch: