From 16d7c3f5e8f3502d0559c858a757dccfc36c80f5 Mon Sep 17 00:00:00 2001 From: karastift <69339287+karastift@users.noreply.github.com> Date: Thu, 26 Feb 2026 22:19:46 +0100 Subject: [PATCH 1/3] upgrade richclip binary --- lua/richclip/binary.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/richclip/binary.lua b/lua/richclip/binary.lua index 474bdea..e26de2d 100644 --- a/lua/richclip/binary.lua +++ b/lua/richclip/binary.lua @@ -4,9 +4,9 @@ local M = {} local config = require("richclip.config") local utils = require("richclip.utils") -M._major_ver = '0' -M._minor_ver = '2' -M._patch_ver = '1' +M._major_ver = "0" +M._minor_ver = "3" +M._patch_ver = "0" local current_file_dir = debug.getinfo(1).source:match('@?(.*/)') local current_file_dir_parts = vim.split(current_file_dir, '/') From dbebb0c284fbf840662aaf33e1183b0d7a280c98 Mon Sep 17 00:00:00 2001 From: karastift <69339287+karastift@users.noreply.github.com> Date: Thu, 26 Feb 2026 22:19:52 +0100 Subject: [PATCH 2/3] add macos support --- bin/install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/install.sh b/bin/install.sh index 6758254..d48d235 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -34,7 +34,11 @@ download() { popd ;; Darwin*) - echoerr "Mac build is not available yet." + pushd "$TARGET_DIR" + curl -fsSL \ + "https://github.com/beeender/richclip/releases/download/v${VERSION_STR}/richclip_v${VERSION_STR}_aarch64-apple-darwin.tar.gz" | \ + tar -xz + popd ;; CYGWIN* | MINGW* | MSYS_NT*) echoerr "Windows build is not available yet." From edb430b34b23e2e9a29588c8af0e2e86f2f51202 Mon Sep 17 00:00:00 2001 From: karastift <69339287+karastift@users.noreply.github.com> Date: Thu, 26 Feb 2026 22:26:25 +0100 Subject: [PATCH 3/3] add architecture distinction --- bin/install.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/bin/install.sh b/bin/install.sh index d48d235..0b0dff4 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -35,9 +35,23 @@ download() { ;; Darwin*) pushd "$TARGET_DIR" - curl -fsSL \ - "https://github.com/beeender/richclip/releases/download/v${VERSION_STR}/richclip_v${VERSION_STR}_aarch64-apple-darwin.tar.gz" | \ - tar -xz + arch="$(uname -m)" + case "${arch}" in + arm64|aarch64) + curl -fsSL \ + "https://github.com/beeender/richclip/releases/download/v${VERSION_STR}/richclip_v${VERSION_STR}_aarch64-apple-darwin.tar.gz" | \ + tar -xz + ;; + x86_64) + curl -fsSL \ + "https://github.com/beeender/richclip/releases/download/v${VERSION_STR}/richclip_v${VERSION_STR}_x86_64-apple-darwin.tar.gz" | \ + tar -xz + ;; + *) + echoerr "Unsupported Darwin architecture: '${arch}'" + exit 1 + ;; + esac popd ;; CYGWIN* | MINGW* | MSYS_NT*)