This commit is contained in:
Hans Karlinius
2024-12-05 21:20:20 +01:00
parent d1b23d995b
commit f1508a63c6
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -4,19 +4,19 @@ FROM $BUILD_FROM
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /
# Install vhclient
ARG VHCLIENT_BASE_URL=https://www.virtualhere.com/sites/default/files/usbclient
RUN if [ "$BUILD_ARCH" = "armhf" ]; then \ RUN if [ "$BUILD_ARCH" = "armhf" ]; then \
VHCLIENT_ARCH="armhf"; \ ENV VHCLIENT="vhclientarmhf"; \
elif [ "$BUILD_ARCH" = "aarch64" ]; then \ elif [ "$BUILD_ARCH" = "aarch64" ]; then \
VHCLIENT_ARCH="arm64"; \ ENV VHCLIENT="vhclientarm64"; \
elif [ "$BUILD_ARCH" = "amd64" ]; then \ elif [ "$BUILD_ARCH" = "amd64" ]; then \
VHCLIENT_ARCH="x86_64"; \ ENV VHCLIENT="vhclientx86_64"; \
elif [ "$BUILD_ARCH" = "i386" ]; then \ elif [ "$BUILD_ARCH" = "i386" ]; then \
VHCLIENT_ARCH="i386"; \ ENV 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 \ curl -sSLf -o /usr/bin/vhclient $VHCLIENT_BASE_URL/$VHCLIENT
"https://www.virtualhere.com/sites/default/files/usbclient/vhclient"$VHCLIENT_ARCH
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.365" version: "0.1.366"
slug: vhclient slug: vhclient
description: VirtualHere Client description: VirtualHere Client
arch: arch: