luna-binary-uploader 0.1.8 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8eb081de584f9444708a84d7af3953965872eae7254aaa34d1744b7f635778fc
4
- data.tar.gz: db0c4458a6b710f0fa9e5973d6b89c84d8bebebf79511df7cda1eda1eff05d08
3
+ metadata.gz: 608a62aecb8dd5d6cf698087cee24847b10617e1240aca9a6437172022b9e9ad
4
+ data.tar.gz: 513795f19904b0084ccc51adf8ef93e771197d8e9118b05e0f2df536828e8ccc
5
5
  SHA512:
6
- metadata.gz: 90ebddb758d1deaf84b6d9681fd27b3adb9027859c55e53f0aaed7020c7d171fe4ab8fdad1066f358c1fd49054e7c7ddfc63ed8c3258e7c1504e8f8c9e77d717
7
- data.tar.gz: 5c3f759c39fbd1f09009b4002bdfb2fd2eec238b76c9e9659f0a1d25711d4bad4ee912683925ffe939c05f399e8daaf2a92538aea37fda0b8c46c8cccfb773d7
6
+ metadata.gz: 1bef91e202cad493b558e187764bfa65d035ee5338f75b85bc7728474285d5b664a3fbf9802cd2a6b6c9ace2a447bf077963c65fc29d5624df170ad2287041d1
7
+ data.tar.gz: c7ca273c584f1507e4c75ba5c71d84fe7f20ff073c26e286d638e4dc38b35d69ab9201ef9512e9a18ce261ccb786bf37ef4b26e113db12b2f8dd1d0d16accc99
data/.gitignore CHANGED
@@ -6,4 +6,9 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
- Gemfile.lock
9
+ Gemfile.lock
10
+ Podfile
11
+ Podfile.lock
12
+ temp-luna-uploader/
13
+ vendor/
14
+ Embed/
data/bin/lbu CHANGED
@@ -111,7 +111,7 @@ class App
111
111
  else
112
112
  obj.binary_path = Luna::Binary::Common.instance.binary_path_merged
113
113
  end
114
- obj.needUpload = args[1]
114
+ obj.need_upload = args[1]
115
115
  obj.run
116
116
  end
117
117
  end
@@ -27,6 +27,7 @@ module Luna
27
27
  isNext = true
28
28
  Pod::UserInterface.puts "请将二进制开关关闭,确保每个模块都是源码运行,因为二进制的因素有可能source缓存还是会引入二进制".yellow
29
29
  command("rm -rf #{Dir.pwd}/Pods")
30
+
30
31
  isNext = command("pod install")
31
32
  Luna::Binary::Common.instance.deleteDirectory(binary_path_arm)
32
33
  tempLunaUploaderPath = Luna::Binary::Common.instance.tempLunaUploaderPath
@@ -74,7 +75,8 @@ module Luna
74
75
 
75
76
  def mergeFrameWork(moduleName, path1, path2)
76
77
  command("mkdir -p #{binary_path_merged}; cp -r #{File.dirname(path1)} #{binary_path_merged}; mv #{binary_path_merged}/#{File.basename(File.dirname(path1))} #{binary_path_merged}/#{moduleName};")
77
- return command("lipo -create #{path2}/#{moduleName} #{path1}/#{moduleName} -output #{binary_path_merged}/#{moduleName}/#{moduleName}.framework/#{moduleName}")
78
+ command("lipo -create #{path2}/#{moduleName} #{path1}/#{moduleName} -output #{binary_path_merged}/#{moduleName}/#{moduleName}.framework/#{moduleName}")
79
+ command("cp -r #{path2}/Modules/#{moduleName}.swiftmodule #{binary_path_merged}/#{moduleName}/#{moduleName}.framework/Modules")
78
80
  end
79
81
 
80
82
  def findFramework(moduleName, binary_path)
@@ -27,6 +27,7 @@ module Luna
27
27
  end
28
28
  }
29
29
  if repoPath == nil
30
+ p '没找到repo路径'
30
31
  raise '没找到repo路径'
31
32
  end
32
33
  return repoPath
@@ -21,15 +21,15 @@ module Luna
21
21
  if pathArr != nil
22
22
  Pod::UserInterface.puts "#{pathArr.first} #{k}".yellow
23
23
  srcPath = File.dirname(pathArr.first)
24
- File.rename(srcPath, "#{rootPath}/#{k}")
25
- system "cp -r #{srcPath} #{rootPath}; "
24
+ system "cp -r #{srcPath} #{rootPath};"
25
+ File.rename("#{rootPath}/#{File.basename(srcPath)}", "#{rootPath}/#{k}")
26
26
  zipCommand = "cd #{rootPath};zip -r #{k}.zip #{k}"
27
27
  p zipCommand
28
28
  system zipCommand
29
- Luna::Binary::Delete.new(k,v).deleteBinaryFramework
30
- command = "cd #{rootPath};curl #{CBin.config.binary_upload_url} -F \"name=#{k}\" -F \"version=#{v}\" -F \"annotate=#{k}_#{v}_log\" -F \"file=@#{k}.zip\""
31
- p command
32
- system command
29
+ # Luna::Binary::Delete.new(k,v).deleteBinaryFramework
30
+ # command = "cd #{rootPath};curl #{CBin.config.binary_upload_url} -F \"name=#{k}\" -F \"version=#{v}\" -F \"annotate=#{k}_#{v}_log\" -F \"file=@#{k}.zip\""
31
+ # p command
32
+ # system command
33
33
  end
34
34
  rescue => exception
35
35
  p exception
@@ -41,7 +41,7 @@ module Luna
41
41
  uploader = Luna::Binary::Uploader::SingleUploader.new(moduleName, "", "", binary_path)
42
42
  uploader.specification=Pod::Specification.from_file(pathArr.first)
43
43
  uploader.specificationWork
44
- localPathMapper[moduleName] = pathArr.first
44
+ successList<<uploader
45
45
  end
46
46
 
47
47
  elsif gitURL && tag && !moduleName["/"]
@@ -75,6 +75,7 @@ module Luna
75
75
  }
76
76
 
77
77
  successList.each { |item|
78
+ Pod::UserInterface.puts "#{item} 制作中".yellow
78
79
  item.upload
79
80
  }
80
81
  p "exception:#{failList}"
@@ -1,7 +1,7 @@
1
1
  module Luna
2
2
  module Binary
3
3
  module Uploader
4
- VERSION = "0.1.8"
4
+ VERSION = "0.1.13"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luna-binary-uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - 车德超
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-20 00:00:00.000000000 Z
11
+ date: 2021-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake