This commit is contained in:
Hans Karlinius
2024-12-05 21:27:28 +01:00
parent f1508a63c6
commit 504bd0bc1e
2 changed files with 7 additions and 6 deletions

View File

@@ -6,17 +6,18 @@ COPY rootfs /
# Install vhclient
ARG VHCLIENT_BASE_URL=https://www.virtualhere.com/sites/default/files/usbclient
ARG VHCLIENT
RUN if [ "$BUILD_ARCH" = "armhf" ]; then \
ENV VHCLIENT="vhclientarmhf"; \
$VHCLIENT="vhclientarmhf"; \
elif [ "$BUILD_ARCH" = "aarch64" ]; then \
ENV VHCLIENT="vhclientarm64"; \
$VHCLIENT="vhclientarm64"; \
elif [ "$BUILD_ARCH" = "amd64" ]; then \
ENV VHCLIENT="vhclientx86_64"; \
$VHCLIENT="vhclientx86_64"; \
elif [ "$BUILD_ARCH" = "i386" ]; then \
ENV VHCLIENT="vhclienti386"; \
$VHCLIENT="vhclienti386"; \
else \
echo "No vhclient exists for build arch"; \
fi
RUN \
curl -sSLf -o /usr/bin/vhclient $VHCLIENT_BASE_URL/$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.366"
version: "0.1.367"
slug: vhclient
description: VirtualHere Client
arch: