diff --git a/src/spm/spm.lua b/src/spm/spm.lua index 3e4ecb6..daa190f 100644 --- a/src/spm/spm.lua +++ b/src/spm/spm.lua @@ -431,7 +431,7 @@ local function installPackage(requestedPackage, installPath, doUpdate) end if packageInfo.minified or options.m then - filePath = string.gsub(filePath, "(.+)\\.(.+)$", "%1\\.min\\.%2") + filePath = string.gsub(filePath, "(.+)%.lua$", "%1") .. ".min.lua" end local success = pcall(downloadFile, repositoryPath .. "/" .. filePath, installedPath)