Browse Source

Adapting to lua pattern matching for minified downloads

environments/production/deployments/22
Drew Short 6 years ago
parent
commit
1130aab98d
  1. 2
      src/spm/spm.lua

2
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)

Loading…
Cancel
Save