fix: releases hosting is only on codemp.dev

This commit is contained in:
əlemi 2024-09-10 16:23:32 +02:00
parent e852ba6e79
commit ca2a3b3767
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -20,7 +20,7 @@ end
local native_path = plugin_dir .. "/lua/codemp/new-native." .. ext local native_path = plugin_dir .. "/lua/codemp/new-native." .. ext
local replace_native_path = plugin_dir .. "/lua/codemp/native." .. ext local replace_native_path = plugin_dir .. "/lua/codemp/native." .. ext
local download_url_native = string.format("https://code.mp/releases/lua/codemp-lua-%s-%s.%s", arch, platform, ext) local download_url_native = string.format("https://codemp.dev/releases/lua/codemp-lua-%s-%s.%s", arch, platform, ext)
print("downloading codemp native lua extension from '" .. download_url_native .. "' ...") print("downloading codemp native lua extension from '" .. download_url_native .. "' ...")
vim.system({"curl", "-s", "-o", native_path, download_url_native }):wait() -- TODO can we run this asynchronously? vim.system({"curl", "-s", "-o", native_path, download_url_native }):wait() -- TODO can we run this asynchronously?
print("downloaded! exit nvim to reload library") print("downloaded! exit nvim to reload library")