summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-10 23:49:13 +0800
committerruki <[email protected]>2020-04-10 16:55:21 +0800
commitd8e9c7eadc64ad333385b30e57362a6d7b58aa3e (patch)
tree3672e0de4c003ce1753f07e4fde6e583addbf668
parent2f8ba83840b41de28e7aebd5d12ee35a2bc0c8a1 (diff)
improve resign and ipagen
-rw-r--r--xmake/modules/utils/ipa/package.lua3
-rw-r--r--xmake/rules/xcode/storyboard/xmake.lua3
2 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/utils/ipa/package.lua b/xmake/modules/utils/ipa/package.lua
index 0b3d6afcf..354da1150 100644
--- a/xmake/modules/utils/ipa/package.lua
+++ b/xmake/modules/utils/ipa/package.lua
@@ -40,6 +40,9 @@ function main (appdir, ipafile, iconfile)
end
ipafile = path.absolute(ipafile)
+ -- remove the old ipafile first
+ os.tryrm(ipafile)
+
-- the temporary directory
local tmpdir = path.join(os.tmpdir(), "ipagen", appname)
diff --git a/xmake/rules/xcode/storyboard/xmake.lua b/xmake/rules/xcode/storyboard/xmake.lua
index 3c0146a78..fabc60082 100644
--- a/xmake/rules/xcode/storyboard/xmake.lua
+++ b/xmake/rules/xcode/storyboard/xmake.lua
@@ -57,6 +57,9 @@ rule("xcode.storyboard")
cprint("${color.build.object}compiling.xcode.$(mode) %s", sourcefile)
end
+ -- clear Base.lproj first
+ os.tryrm(base_lproj)
+
-- do compile
local argv = {"--errors", "--warnings", "--notices", "--auto-activate-custom-fonts", "--output-format", "human-readable-text"}
if is_plat("macosx") then