antlr4: improve copy file

pull/5733/merge
star9029 20 hours ago
parent 12d0c21d50
commit 01f5ddee30
  1. 5
      packages/a/antlr4/xmake.lua

@ -25,10 +25,7 @@ package("antlr4")
end)
on_install("@windows", "@linux", "@macosx", function (package)
local source = "antlr-" .. package:version() .. "-complete.jar"
local target = path.join(package:installdir("lib"), "antlr-complete.jar")
os.vcp("../" .. source, package:installdir("lib"))
os.vmv(package:installdir("lib", source), target)
os.vcp(package:originfile(), path.join(package:installdir("lib"), "antlr-complete.jar"))
end)
on_test(function (package)

Loading…
Cancel
Save