Browse Source

Adapting to lua pattern matching for minified downloads

environments/production/deployments/22
Drew Short 7 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 end
if packageInfo.minified or options.m then if packageInfo.minified or options.m then
filePath = string.gsub(filePath, "(.+)\\.(.+)$", "%1\\.min\\.%2")
filePath = string.gsub(filePath, "(.+)%.lua$", "%1") .. ".min.lua"
end end
local success = pcall(downloadFile, repositoryPath .. "/" .. filePath, installedPath) local success = pcall(downloadFile, repositoryPath .. "/" .. filePath, installedPath)

Loading…
Cancel
Save