diff options
| author | ruki <[email protected]> | 2016-06-01 10:46:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-06-01 10:46:39 +0800 |
| commit | 8f62668161f2c002484ff783d67c53d65eee2116 (patch) | |
| tree | 62aaded8a91a4299bb6673dd2bc636cd060fdada /xmake/plugins/macro/macros/package.lua | |
| parent | 6b64748d083be2348d46075bea288656a69f5caa (diff) | |
modify package macro
Diffstat (limited to 'xmake/plugins/macro/macros/package.lua')
| -rwxr-xr-x | xmake/plugins/macro/macros/package.lua | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/xmake/plugins/macro/macros/package.lua b/xmake/plugins/macro/macros/package.lua index 0bf506d1d..deb6e5c86 100755 --- a/xmake/plugins/macro/macros/package.lua +++ b/xmake/plugins/macro/macros/package.lua @@ -28,7 +28,7 @@ import("core.platform.platform") -- .e.g -- xmake m package -- xmake m package linux --- xmake m package iphoneos "--demo=false --xxx ..." +-- xmake m package iphoneos "-m debug --xxx ..." -- function main(argv) @@ -41,14 +41,8 @@ function main(argv) -- package all archs for _, arch in ipairs(platform.archs(plat)) do - -- package debug - os.exec("xmake f -p %s -a %s -m debug %s", plat, arch, args) - os.exec("xmake -r") - os.exec("xmake p") - - -- package release - os.exec("xmake f -p %s -a %s -m release %s", plat, arch, args) - os.exec("xmake -r") + -- package it + os.exec("xmake f -p %s -a %s %s", plat, arch, args) os.exec("xmake p") end end |
