ecb 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/update_plist.rb +10 -0
- data/lib/commands/xcode_build.rb +9 -0
- data/lib/info.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15b890f2091a15f90d16603f447e5a39f80e956e
|
4
|
+
data.tar.gz: 3b0228c5b11428c6aa92e66bbc3f6665ee0c5457
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1c37182fdd72b23a248e2fccbc9f88db8b3b3e9247d5682966262985bb1a3116bea7e629ee7bba90798c57f3e00dc13ac607f29a4ace775cc836f9fe1b5b3ba
|
7
|
+
data.tar.gz: 39d6ca512348f52970ced43e16acaac8393fc1694dc3f61de9a151e9c1065f48559334d17196d2999ec19daa4ee4a4d862910e3d64e8e17c4bc0fabff71367b9
|
@@ -51,6 +51,7 @@ module Commands
|
|
51
51
|
config_repo_url = EcbSharedLib.prepare_config_repo(nil)
|
52
52
|
info = EcbSharedLib.read_repo_config(config_repo_url, config_name)
|
53
53
|
info_plist = info[:info_plist]
|
54
|
+
enterprise_info_plist = info[:enterprise_info_plist]
|
54
55
|
verbose = options[:verbose]
|
55
56
|
if (info_plist) then
|
56
57
|
puts ". Info plist....: " + info_plist if verbose
|
@@ -61,6 +62,15 @@ module Commands
|
|
61
62
|
plist_data.save_plist(info_plist)
|
62
63
|
end
|
63
64
|
end
|
65
|
+
if (enterprise_info_plist) then
|
66
|
+
puts ". Info plist....: " + enterprise_info_plist if verbose
|
67
|
+
plist_data = Plist::parse_xml(enterprise_info_plist)
|
68
|
+
if (build) then
|
69
|
+
plist_data["BuildIdentifier"] = build
|
70
|
+
puts ". buildindentifer....: " + build if verbose
|
71
|
+
plist_data.save_plist(enterprise_info_plist)
|
72
|
+
end
|
73
|
+
end
|
64
74
|
end
|
65
75
|
end
|
66
76
|
end
|
data/lib/commands/xcode_build.rb
CHANGED
@@ -106,6 +106,15 @@ module Commands
|
|
106
106
|
|
107
107
|
builds = info[:builds]
|
108
108
|
builds.each do |build|
|
109
|
+
info_plist = info[:info_plist]
|
110
|
+
enterprise_info_plist = info[:enterprise_info_plist]
|
111
|
+
if build[:build_type] == "enterprise" &&
|
112
|
+
!info_plist.nil? && !enterprise_info_plist.nil? then
|
113
|
+
cmd = "rm #{info_plist}"
|
114
|
+
EcbSharedLib::CL.do_cmd(cmd, '.')
|
115
|
+
cmd = "cp #{enterprise_info_plist} #{info_plist}"
|
116
|
+
EcbSharedLib::CL.do_cmd(cmd, '.')
|
117
|
+
end
|
109
118
|
do_build(build, archivePath)
|
110
119
|
cmd = "git checkout ."
|
111
120
|
EcbSharedLib::CL.do_cmd(cmd, '.')
|
data/lib/info.rb
CHANGED