mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-12-04 05:04:53 +01:00
fix: macos wants a .so?
i dont really get how macos dynamic libraries work...
This commit is contained in:
parent
41e065e157
commit
e0c1069939
1 changed files with 5 additions and 2 deletions
|
@ -40,10 +40,13 @@ end
|
||||||
local sep = '/'
|
local sep = '/'
|
||||||
if os_uname.sysname == "Windows_NT" then sep = '\\' end
|
if os_uname.sysname == "Windows_NT" then sep = '\\' end
|
||||||
|
|
||||||
|
local new_ext = ext
|
||||||
|
if os_uname.sysname == "Darwin" then new_ext = "so" end
|
||||||
|
|
||||||
local version = "v0.7.3"
|
local version = "v0.7.3"
|
||||||
|
|
||||||
local native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."new-native."..ext
|
local native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."new-native."..new_ext
|
||||||
local replace_native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."native."..ext
|
local replace_native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."native."..new_ext
|
||||||
local download_url_native = string.format("https://codemp.dev/releases/lua/codemp-lua-%s-%s-%s.%s", version, arch, platform, ext)
|
local download_url_native = string.format("https://codemp.dev/releases/lua/codemp-lua-%s-%s-%s.%s", version, arch, platform, ext)
|
||||||
|
|
||||||
print("downloading codemp native lua extension from '" .. download_url_native .. "' ...")
|
print("downloading codemp native lua extension from '" .. download_url_native .. "' ...")
|
||||||
|
|
Loading…
Reference in a new issue