diff options
| author | ruki <[email protected]> | 2023-11-15 00:09:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-15 00:09:26 +0800 |
| commit | 165e60830a6d843736f9ae8dd95693a51c41fb4d (patch) | |
| tree | b0883c32180972b2056c0dda611b3e6ff870e218 | |
| parent | 4f9ca010173a219a02779eea376faeabb21c35a8 (diff) | |
rename funcs
| -rw-r--r-- | xmake/plugins/pack/nsis/main.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/plugins/pack/nsis/main.lua b/xmake/plugins/pack/nsis/main.lua index 08f9b78a2..1d8130fb3 100644 --- a/xmake/plugins/pack/nsis/main.lua +++ b/xmake/plugins/pack/nsis/main.lua @@ -109,8 +109,8 @@ function _get_commands_string(package, cmds) return table.concat(cmdstrs, "\n ") end --- on install command for target -function _on_installcmd_target(target, batchcmds_) +-- on install command of target +function _on_installcmd_of_target(target, batchcmds_) -- install target file batchcmds_:cp(target:targetfile(), target:filename()) @@ -122,8 +122,8 @@ function _on_installcmd_target(target, batchcmds_) end end --- on uninstall command for target -function _on_uninstallcmd_target(target, batchcmds_) +-- on uninstall command of target +function _on_uninstallcmd_of_target(target, batchcmds_) -- uninstall target file batchcmds_:rm(target:filename()) @@ -149,7 +149,7 @@ function _get_installcmds_from_target(batchcmds_, target) end end end, - target:script("installcmd", _on_installcmd_target), + target:script("installcmd", _on_installcmd_of_target), function (target) for _, r in ipairs(target:orderules()) do local after_installcmd = r:script("installcmd_after") @@ -182,7 +182,7 @@ function _get_uninstallcmds_from_target(batchcmds_, target) end end end, - target:script("uninstallcmd", _on_uninstallcmd_target), + target:script("uninstallcmd", _on_uninstallcmd_of_target), function (target) for _, r in ipairs(target:orderules()) do local after_uninstallcmd = r:script("uninstallcmd_after") |
