Skip to content

Commit

Permalink
improve to fetch nsis
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 19, 2023
1 parent 782ed7d commit f9f6792
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/n/nsis/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ package("nsis")
add_resources("3.09", "uac", "https://github.com/xmake-mirror/nsis/releases/download/v309/UAC.zip", "20e3192af5598568887c16d88de59a52c2ce4a26e42c5fb8bee8105dcbbd1760")
add_resources("3.09", "strlen_8192", "https://github.com/xmake-mirror/nsis/releases/download/v309/nsis-3.09-strlen_8192.zip", "9e3b8e77c97a46747201f95f89eba26714dd9c6dc06830c3934b3f5fbdb1beca")

on_fetch(function (package, opt)
if opt.system then
return package:find_tool("makensis", table.join({check = "/CMDHELP"}, opt))
end
end)

on_install("@windows|x64", "@windows|x86", function (package)
os.cp("*", package:installdir())
os.cp(path.join(package:resourcedir("strlen_8192"), "*"), package:installdir())
Expand Down

0 comments on commit f9f6792

Please sign in to comment.