summaryrefslogtreecommitdiff
path: root/xmake/modules/private/tools/codesign.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/tools/codesign.lua')
-rw-r--r--xmake/modules/private/tools/codesign.lua16
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)