ci: cn、com区域打包逻辑分离。
This commit is contained in:
parent
01f43048ea
commit
0424166eb0
@ -156,17 +156,19 @@ platform :android do
|
|||||||
def process_file(file_path, regexpList)
|
def process_file(file_path, regexpList)
|
||||||
content = File.read(file_path)
|
content = File.read(file_path)
|
||||||
regexpList.each do |tag|
|
regexpList.each do |tag|
|
||||||
content = content.gsub(tag,'><')
|
content = content.gsub(tag,'')
|
||||||
end
|
end
|
||||||
File.write(file_path, content)
|
File.write(file_path, content)
|
||||||
UI.message("Processed file: #{file_path},content : #{content}")
|
UI.message("Processed file: #{file_path},content :\n #{content}")
|
||||||
end
|
end
|
||||||
|
|
||||||
pathList.each do |path|
|
pathList.each do |path|
|
||||||
realPath = File.join($path_dir_build, path)
|
realPath = File.join($path_dir_build, path)
|
||||||
if File.directory?(realPath)
|
if File.directory?(realPath)
|
||||||
Dir.glob("#{realPath}/**/*").each do |file|
|
Dir.glob("#{realPath}/**/*").each do |file|
|
||||||
if extensions.include?(File.extname(file))
|
if File.directory?(realPath)
|
||||||
|
UI.message("Find child dir path: #{file}")
|
||||||
|
elsif extensions.include?(File.extname(file))
|
||||||
process_file(file,regexp_List)
|
process_file(file,regexp_List)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user