Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,25 @@ download() {
popd
;;
Darwin*)
echoerr "Mac build is not available yet."
pushd "$TARGET_DIR"
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*)
echoerr "Windows build is not available yet."
Expand Down
6 changes: 3 additions & 3 deletions lua/richclip/binary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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, '/')
Expand Down