From d2d8360fe1eca98bd211567c019449e7d3b4a3c3 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Mon, 2 Dec 2024 12:25:12 +0900 Subject: [PATCH] README.md: mention the binary releases Signed-off-by: Akihiro Suda --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index bbd8a5e..f63486b 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Unlike `vde_vmnet`, `socket_vmnet` does not depend on VDE. - [Install](#install) + - [From source](#from-binary) - [From source](#from-source) - [From Homebrew](#from-homebrew) - [From MacPorts](#from-macports) @@ -39,6 +40,27 @@ Unlike `vde_vmnet`, `socket_vmnet` does not depend on VDE. Requires macOS 10.15 or later. +### From binary + +```bash +VERSION="$(curl -fsSL https://api.github.com/repos/lima-vm/socket_vmnet/releases/latest | jq -r .tag_name)" +FILE="socket_vmnet-${VERSION:1}-$(uname -m).tar.gz" + +# Download the binary archive +curl -OSL "https://github.com/lima-vm/socket_vmnet/releases/download/${VERSION}/${FILE}" + +# (Optional) Attest the GitHub Artifact Attestation using GitHub's gh command (https://cli.github.com) +gh attestation verify --owner=lima-vm "${FILE}" + +# (Optional) Preview the contents of the binary archive +tar tzvf "${FILE}" + +# Install /opt/socket_vmnet from the binary archive +sudo tar Cxzvf / "${FILE}" opt/socket_vmnet +``` + +This downloads and installs the latest release from . + ### From source ```bash sudo make install.bin