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