diff options
| author | ruki <[email protected]> | 2016-01-28 20:33:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-02-15 19:10:26 +0800 |
| commit | 80a87ab432cbe72ab772f02d13daa75bc1010085 (patch) | |
| tree | edece4e5a3066589401b2c6ebf0f5e32e0ec45f7 /xmake/core/action/install.lua | |
| parent | 780a88f1b2e7cb90be32cd20216bd94460824c20 (diff) | |
register some builtin api for sandbox
Diffstat (limited to 'xmake/core/action/install.lua')
| -rw-r--r-- | xmake/core/action/install.lua | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/xmake/core/action/install.lua b/xmake/core/action/install.lua index 55e62bfbe..ae1ed79c2 100644 --- a/xmake/core/action/install.lua +++ b/xmake/core/action/install.lua @@ -50,24 +50,7 @@ function action_install._makeconf(configs, target_name, target) local configs_target = configs[target_name] -- save the install script - local installscript = target.installscript - if type(installscript) == "string" and os.isfile(installscript) then - local script, errors = loadfile(installscript) - if script then - installscript = script() - if type(installscript) == "table" and installscript.main then - installscript = installscript.main - end - else - utils.error(errors) - return false - end - end - if target.installscript and type(installscript) ~= "function" then - utils.error("invalid install script!") - return false - end - configs_target.installscript = installscript + configs_target.installscript = target.installscript -- ok return true |
