fix: macos wants a .so?

i dont really get how macos dynamic libraries work...
This commit is contained in:
əlemi 2024-10-09 21:29:16 +02:00
parent 41e065e157
commit e0c1069939
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -40,10 +40,13 @@ end
local sep = '/'
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 native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."new-native."..ext
local replace_native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."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."..new_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 .. "' ...")