From 59c850a8a9ded9b8c594d9ca0b06cfd87c4e5355 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 6 Sep 2024 03:26:30 +0200 Subject: [PATCH] feat: also download annotations --- build.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.lua b/build.lua index c29388d..f406825 100644 --- a/build.lua +++ b/build.lua @@ -20,7 +20,12 @@ local plugin_dir = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h -- vim.fn.system("curl -o " .. path .. 'native' .. ext .. "https://codemp.alemi.dev/lib/lua/latest") -- end local native_path = plugin_dir .. "/lua/codemp/native.so" -- TODO get extension based on platform -local download_url = "https://codemp.dev/releases/lua/codemp_native-linux.so" -- TODO get url based on platform +local download_url_native = "https://codemp.dev/releases/lua/codemp_native-linux.so" -- TODO get url based on platform print("downloading codemp native lua extension...") +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 }):wait() -- TODO can we run this asynchronously? + +local annotations_path = plugin_dir .. "/lua/codemp/annotations.lua" +local download_url_annotations = "https://codemp.dev/releases/lua/annotations.lua" +print("downloading codemp lua annotations...") +vim.system({"curl", "-s", "-o", annotations_path, download_url_annotations }):wait() -- TODO can we run this asynchronously?