diff options
author | Adam <adamdharrison@gmail.com> | 2023-05-27 11:24:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-27 11:24:49 -0400 |
commit | 74ced2030dc40b59b0ebce42269780c2f11afb6d (patch) | |
tree | 31014c095e426170942050b6b95accf9b1d93b9e | |
parent | 9841bad3c4c09b38fe4d6e743f94d4ee752bd680 (diff) | |
parent | 8b26999552fd59bcc98bc5d2f4b94b52fd592033 (diff) | |
download | lite-xl-plugin-manager-74ced2030dc40b59b0ebce42269780c2f11afb6d.tar.gz lite-xl-plugin-manager-74ced2030dc40b59b0ebce42269780c2f11afb6d.zip |
Merge pull request #16 from Guldoman/PR_fix_manifest_gen_path
Add missing `PATHSEP` to plugin paths in generated manifests
-rw-r--r-- | src/lpm.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index 29f949e..e835ae0 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1014,7 +1014,7 @@ function Repository:generate_manifest(repo_id) if repo_id and name == "init" then name = repo_id end if name ~= "init" then local type = folder == "colors" and "color" or (folder == "libraries" and "library" or "plugin") - local addon = { description = nil, id = name:lower():gsub("[^a-z0-9%-_]", ""), name = name, mod_version = LATEST_MOD_VERSION, version = "0.1", path = (filename ~= "init" and (addon_dir .. file) or nil), type = type } + local addon = { description = nil, id = name:lower():gsub("[^a-z0-9%-_]", ""), name = name, mod_version = LATEST_MOD_VERSION, version = "0.1", path = (filename ~= "init" and (addon_dir .. PATHSEP .. file) or nil), type = type } for line in io.lines(path .. addon_dir .. PATHSEP .. file) do local _, _, mod_version = line:find("%-%-.*mod%-version:%s*(%w+)") if mod_version then addon.mod_version = mod_version end |