diff options
| author | ruki <[email protected]> | 2020-04-25 22:15:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-25 22:15:27 +0800 |
| commit | dbc191d66e02613912ea63e838d728a33d4e7b69 (patch) | |
| tree | 86b8f5fb663e49709f238474d68424c6eb59f4a0 | |
| parent | a8336ef46f5eee083f7d0ab0fef47e2e36da8a3a (diff) | |
remove sign for codesign
| -rw-r--r-- | xmake/modules/private/tools/codesign.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/xmake/modules/private/tools/codesign.lua b/xmake/modules/private/tools/codesign.lua index 5631312ee..73e7b918d 100644 --- a/xmake/modules/private/tools/codesign.lua +++ b/xmake/modules/private/tools/codesign.lua @@ -104,6 +104,22 @@ function dump() print(mobile_provisions()) end +-- remove signature +function unsign(programdir) + + -- only for macosx + assert(is_host("macosx"), "codesign: only support for macOS!") + + -- get codesign + local codesign = find_tool("codesign") + if not codesign then + return + end + + -- remove signature + os.vrunv(codesign.program, {"--remove-signature", programdir}) +end + -- main entry function main (programdir, codesign_identity, mobile_provision) |
