luna-binary-uploader 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +174 -0
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/Rakefile +2 -0
- data/bin/lbu +189 -0
- data/bin/setup +8 -0
- data/lib/luna/binary/analysis.rb +179 -0
- data/lib/luna/binary/build.rb +91 -0
- data/lib/luna/binary/common/common.rb +125 -0
- data/lib/luna/binary/delete.rb +50 -0
- data/lib/luna/binary/refresh.rb +75 -0
- data/lib/luna/binary/update.rb +118 -0
- data/lib/luna/binary/uploader/version.rb +7 -0
- data/lib/luna/binary/uploader.rb +410 -0
- data/luna-binary-uploader.gemspec +39 -0
- metadata +174 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fdf3910fb738057554515aac9ecd91ce6a86f8fce2720e27fd050e9e04216b74
|
4
|
+
data.tar.gz: 4e5efdedf0dd045eb0c591b7242b29aa4c625ce91add1714411909d5ecf61b66
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 21610a08fefcd450ecc7db97c0fbbd8819f6ca05271a0dad8f1d0d86d7801ac2517a82a303ae3bc8774049cf1cdef0423282e62dac2a7ce5b8d54c9ae838f982
|
7
|
+
data.tar.gz: 0f6b63c16350925aabb3beb53f21e93408d19f8721d740a19c0fbe05f629eb697716397f4da043e973f2fe2e7ec1c47d2ca0f4e0eeb539f253a81b4d80c7c4a3
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at chedechao333@163.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,174 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
luna-binary-uploader (0.1.22)
|
5
|
+
cocoapods
|
6
|
+
cocoapods-generate (~> 2.0.1)
|
7
|
+
cocoapods-imy-bin (= 0.3.1.3)
|
8
|
+
gli (= 2.19.0)
|
9
|
+
parallel
|
10
|
+
|
11
|
+
GEM
|
12
|
+
remote: https://rubygems.org/
|
13
|
+
specs:
|
14
|
+
CFPropertyList (3.0.4)
|
15
|
+
rexml
|
16
|
+
activesupport (6.1.4.1)
|
17
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
+
i18n (>= 1.6, < 2)
|
19
|
+
minitest (>= 5.1)
|
20
|
+
tzinfo (~> 2.0)
|
21
|
+
zeitwerk (~> 2.3)
|
22
|
+
addressable (2.8.0)
|
23
|
+
public_suffix (>= 2.0.2, < 5.0)
|
24
|
+
algoliasearch (1.27.5)
|
25
|
+
httpclient (~> 2.8, >= 2.8.3)
|
26
|
+
json (>= 1.5.1)
|
27
|
+
aruba (2.0.0)
|
28
|
+
bundler (>= 1.17, < 3.0)
|
29
|
+
childprocess (>= 2.0, < 5.0)
|
30
|
+
contracts (>= 0.16.0, < 0.18.0)
|
31
|
+
cucumber (>= 4.0, < 8.0)
|
32
|
+
rspec-expectations (~> 3.4)
|
33
|
+
thor (~> 1.0)
|
34
|
+
atomos (0.1.3)
|
35
|
+
builder (3.2.4)
|
36
|
+
childprocess (4.1.0)
|
37
|
+
claide (1.0.3)
|
38
|
+
cocoapods (1.11.2)
|
39
|
+
addressable (~> 2.8)
|
40
|
+
claide (>= 1.0.2, < 2.0)
|
41
|
+
cocoapods-core (= 1.11.2)
|
42
|
+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
43
|
+
cocoapods-downloader (>= 1.4.0, < 2.0)
|
44
|
+
cocoapods-plugins (>= 1.0.0, < 2.0)
|
45
|
+
cocoapods-search (>= 1.0.0, < 2.0)
|
46
|
+
cocoapods-trunk (>= 1.4.0, < 2.0)
|
47
|
+
cocoapods-try (>= 1.1.0, < 2.0)
|
48
|
+
colored2 (~> 3.1)
|
49
|
+
escape (~> 0.0.4)
|
50
|
+
fourflusher (>= 2.3.0, < 3.0)
|
51
|
+
gh_inspector (~> 1.0)
|
52
|
+
molinillo (~> 0.8.0)
|
53
|
+
nap (~> 1.0)
|
54
|
+
ruby-macho (>= 1.0, < 3.0)
|
55
|
+
xcodeproj (>= 1.21.0, < 2.0)
|
56
|
+
cocoapods-core (1.11.2)
|
57
|
+
activesupport (>= 5.0, < 7)
|
58
|
+
addressable (~> 2.8)
|
59
|
+
algoliasearch (~> 1.0)
|
60
|
+
concurrent-ruby (~> 1.1)
|
61
|
+
fuzzy_match (~> 2.0.4)
|
62
|
+
nap (~> 1.0)
|
63
|
+
netrc (~> 0.11)
|
64
|
+
public_suffix (~> 4.0)
|
65
|
+
typhoeus (~> 1.0)
|
66
|
+
cocoapods-deintegrate (1.0.5)
|
67
|
+
cocoapods-disable-podfile-validations (0.1.1)
|
68
|
+
cocoapods-downloader (1.5.1)
|
69
|
+
cocoapods-generate (2.0.1)
|
70
|
+
cocoapods-disable-podfile-validations (~> 0.1.1)
|
71
|
+
cocoapods-imy-bin (0.3.1.3)
|
72
|
+
cocoapods
|
73
|
+
cocoapods-generate (~> 2.0.0)
|
74
|
+
parallel
|
75
|
+
cocoapods-plugins (1.0.0)
|
76
|
+
nap
|
77
|
+
cocoapods-search (1.0.1)
|
78
|
+
cocoapods-trunk (1.6.0)
|
79
|
+
nap (>= 0.8, < 2.0)
|
80
|
+
netrc (~> 0.11)
|
81
|
+
cocoapods-try (1.2.0)
|
82
|
+
colored2 (3.1.2)
|
83
|
+
concurrent-ruby (1.1.9)
|
84
|
+
contracts (0.16.1)
|
85
|
+
cucumber (7.0.0)
|
86
|
+
builder (~> 3.2, >= 3.2.4)
|
87
|
+
cucumber-core (~> 10.0, >= 10.0.1)
|
88
|
+
cucumber-create-meta (~> 6.0, >= 6.0.1)
|
89
|
+
cucumber-cucumber-expressions (~> 12.1, >= 12.1.1)
|
90
|
+
cucumber-gherkin (~> 20.0, >= 20.0.1)
|
91
|
+
cucumber-html-formatter (~> 16.0, >= 16.0.1)
|
92
|
+
cucumber-messages (~> 17.0, >= 17.0.1)
|
93
|
+
cucumber-wire (~> 6.0, >= 6.0.1)
|
94
|
+
diff-lcs (~> 1.4, >= 1.4.4)
|
95
|
+
mime-types (~> 3.3, >= 3.3.1)
|
96
|
+
multi_test (~> 0.1, >= 0.1.2)
|
97
|
+
sys-uname (~> 1.2, >= 1.2.2)
|
98
|
+
cucumber-core (10.0.1)
|
99
|
+
cucumber-gherkin (~> 20.0, >= 20.0.1)
|
100
|
+
cucumber-messages (~> 17.0, >= 17.0.1)
|
101
|
+
cucumber-tag-expressions (~> 3.0, >= 3.0.1)
|
102
|
+
cucumber-create-meta (6.0.1)
|
103
|
+
cucumber-messages (~> 17.0, >= 17.0.1)
|
104
|
+
sys-uname (~> 1.2, >= 1.2.2)
|
105
|
+
cucumber-cucumber-expressions (12.1.3)
|
106
|
+
cucumber-gherkin (20.0.1)
|
107
|
+
cucumber-messages (~> 17.0, >= 17.0.1)
|
108
|
+
cucumber-html-formatter (16.0.1)
|
109
|
+
cucumber-messages (~> 17.0, >= 17.0.1)
|
110
|
+
cucumber-messages (17.1.1)
|
111
|
+
cucumber-tag-expressions (3.0.1)
|
112
|
+
cucumber-wire (6.1.1)
|
113
|
+
cucumber-core (~> 10.0, >= 10.0.1)
|
114
|
+
cucumber-cucumber-expressions (~> 12.1, >= 12.1.2)
|
115
|
+
cucumber-messages (~> 17.0, >= 17.0.1)
|
116
|
+
diff-lcs (1.4.4)
|
117
|
+
escape (0.0.4)
|
118
|
+
ethon (0.14.0)
|
119
|
+
ffi (>= 1.15.0)
|
120
|
+
ffi (1.15.4)
|
121
|
+
fourflusher (2.3.1)
|
122
|
+
fuzzy_match (2.0.4)
|
123
|
+
gh_inspector (1.1.3)
|
124
|
+
gli (2.19.0)
|
125
|
+
httpclient (2.8.3)
|
126
|
+
i18n (1.8.10)
|
127
|
+
concurrent-ruby (~> 1.0)
|
128
|
+
json (2.5.1)
|
129
|
+
mime-types (3.3.1)
|
130
|
+
mime-types-data (~> 3.2015)
|
131
|
+
mime-types-data (3.2021.0901)
|
132
|
+
minitest (5.14.4)
|
133
|
+
molinillo (0.8.0)
|
134
|
+
multi_test (0.1.2)
|
135
|
+
nanaimo (0.3.0)
|
136
|
+
nap (1.1.0)
|
137
|
+
netrc (0.11.0)
|
138
|
+
parallel (1.21.0)
|
139
|
+
public_suffix (4.0.6)
|
140
|
+
rake (12.3.3)
|
141
|
+
rdoc (6.3.2)
|
142
|
+
rexml (3.2.5)
|
143
|
+
rspec-expectations (3.10.1)
|
144
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
145
|
+
rspec-support (~> 3.10.0)
|
146
|
+
rspec-support (3.10.2)
|
147
|
+
ruby-macho (2.5.1)
|
148
|
+
sys-uname (1.2.2)
|
149
|
+
ffi (~> 1.1)
|
150
|
+
thor (1.1.0)
|
151
|
+
typhoeus (1.4.0)
|
152
|
+
ethon (>= 0.9.0)
|
153
|
+
tzinfo (2.0.4)
|
154
|
+
concurrent-ruby (~> 1.0)
|
155
|
+
xcodeproj (1.21.0)
|
156
|
+
CFPropertyList (>= 2.3.3, < 4.0)
|
157
|
+
atomos (~> 0.1.3)
|
158
|
+
claide (>= 1.0.2, < 2.0)
|
159
|
+
colored2 (~> 3.1)
|
160
|
+
nanaimo (~> 0.3.0)
|
161
|
+
rexml (~> 3.2.4)
|
162
|
+
zeitwerk (2.4.2)
|
163
|
+
|
164
|
+
PLATFORMS
|
165
|
+
ruby
|
166
|
+
|
167
|
+
DEPENDENCIES
|
168
|
+
aruba
|
169
|
+
luna-binary-uploader!
|
170
|
+
rake (~> 12.0)
|
171
|
+
rdoc
|
172
|
+
|
173
|
+
BUNDLED WITH
|
174
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2021 车德超
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# Luna::Binary::Uploader
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/luna/binary/uploader`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'luna-binary-uploader'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install luna-binary-uploader
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/luna-binary-uploader. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/luna-binary-uploader/blob/master/CODE_OF_CONDUCT.md).
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
41
|
+
|
42
|
+
## Code of Conduct
|
43
|
+
|
44
|
+
Everyone interacting in the Luna::Binary::Uploader project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/luna-binary-uploader/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/lbu
ADDED
@@ -0,0 +1,189 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "luna/binary/uploader"
|
5
|
+
require "luna/binary/delete"
|
6
|
+
require "luna/binary/analysis"
|
7
|
+
require "luna/binary/refresh"
|
8
|
+
require "luna/binary/build"
|
9
|
+
require "luna/binary/DSL/uploader_DSL"
|
10
|
+
require 'gli'
|
11
|
+
|
12
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
13
|
+
# with your gem easier. You can also use a different console, if you like.
|
14
|
+
|
15
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
16
|
+
# require "pry"
|
17
|
+
# Pry.start
|
18
|
+
|
19
|
+
class App
|
20
|
+
extend GLI::App
|
21
|
+
|
22
|
+
program_desc 'luna cocopods-imy-bin自定义二进制上传'
|
23
|
+
|
24
|
+
version Luna::Binary::Uploader::VERSION
|
25
|
+
|
26
|
+
subcommand_option_handling :normal
|
27
|
+
arguments :strict
|
28
|
+
|
29
|
+
desc 'Describe some switch here'
|
30
|
+
switch [:s,:switch]
|
31
|
+
|
32
|
+
desc 'Describe some flag here'
|
33
|
+
default_value 'the default'
|
34
|
+
arg_name 'The name of the argument'
|
35
|
+
flag [:f,:flagname]
|
36
|
+
|
37
|
+
desc 'Describe list here'
|
38
|
+
arg_name 'Describe arguments to list here'
|
39
|
+
command :list do |c|
|
40
|
+
c.desc 'Describe a switch to list'
|
41
|
+
c.switch :s
|
42
|
+
|
43
|
+
c.desc 'Describe a flag to list'
|
44
|
+
c.default_value 'default'
|
45
|
+
c.flag :f
|
46
|
+
c.action do |global_options,options,args|
|
47
|
+
|
48
|
+
# Your command logic here
|
49
|
+
|
50
|
+
# If you have any errors, just raise them
|
51
|
+
# raise "that command made no sense"
|
52
|
+
|
53
|
+
puts "list command ran"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
desc '单个上传二进制文件'
|
58
|
+
arg_name '1.模块名 git地址 git节点 xcode编译的缓存地址 \n 2.模块名 版本号 xcode编译的缓存地址 \n 3.模块名 本地podspec地址 xcode编译的缓存地址'
|
59
|
+
command :single do |c|
|
60
|
+
c.action do |global_options,options,args|
|
61
|
+
if args[3] #模式1
|
62
|
+
Luna::Binary::Uploader::SingleUploader.new(args[0],args[1],args[2], args[3]).upload
|
63
|
+
else
|
64
|
+
moduleName = args[0]
|
65
|
+
args1 = args[1]
|
66
|
+
binaryPath= args[2]
|
67
|
+
version = args1
|
68
|
+
if File.exist?(args1)
|
69
|
+
spec = Pod::Specification.from_file(Pathname.new(args1))
|
70
|
+
uploader = Luna::Binary::Uploader::SingleUploader.new(moduleName, "", "", binaryPath)
|
71
|
+
uploader.specification=spec
|
72
|
+
uploader.upload
|
73
|
+
else
|
74
|
+
set = Luna::Binary::Common.instance.findLintPodspec(moduleName)
|
75
|
+
if set
|
76
|
+
pathArr = set.specification_paths_for_version(Pod::Version.new(version))
|
77
|
+
if pathArr.length > 0
|
78
|
+
spec = Pod::Specification.from_file(pathArr.first)
|
79
|
+
uploader = Luna::Binary::Uploader::SingleUploader.new(moduleName, "", "", binaryPath)
|
80
|
+
uploader.specification=spec
|
81
|
+
uploader.upload
|
82
|
+
else
|
83
|
+
raise "没有找到#{moduleName}"
|
84
|
+
end
|
85
|
+
else
|
86
|
+
Luna::Binary::Uploader::SingleUploader.new(args[0],args[1],args[2], args[3]).upload
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
91
|
+
|
92
|
+
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
desc '单个删除repo 里的podspec & 服务二进制文件'
|
97
|
+
arg_name '模块名 版本号'
|
98
|
+
command :del do |c|
|
99
|
+
c.action do |global_options,options,args|
|
100
|
+
Luna::Binary::Delete.new(args[0],args[1]).delete
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
desc '根据Podfile.lock进行解析成对应的podspec.json并拷贝对应的framework到一个文件夹内,如果第三个参数传upload,则表示分析出的podspec和framework自动上传'
|
105
|
+
arg_name '参数:1.二进制路径(可以不传默认为当前目录下的/temp-luna-uploader/merged) 2.用的话必传upload 可以不传,如果传表示分析完直接打包上传'
|
106
|
+
command :analysis do |c|
|
107
|
+
c.action do |global_options,options,args|
|
108
|
+
obj = Luna::Binary::Analysis.new()
|
109
|
+
if args[0] != nil
|
110
|
+
obj.binary_path = args[0]
|
111
|
+
else
|
112
|
+
obj.binary_path = Luna::Binary::Common.instance.binary_path_merged
|
113
|
+
end
|
114
|
+
obj.needUpload = args[1]
|
115
|
+
obj.run
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
desc '仅仅更新服务的framwork,podfile带有标志位的:dev_env_use_binary的模块framework,通常解决xcode升级导致framework swift 版本问题'
|
120
|
+
arg_name '参数:1.二进制路径(可以不传默认为当前目录下的/temp-luna-uploader/merged)'
|
121
|
+
command :refresh do |c|
|
122
|
+
c.action do |global_options,options,args|
|
123
|
+
obj = Luna::Binary::Refresh.new()
|
124
|
+
if args[0] != nil
|
125
|
+
obj.binary_path = args[0]
|
126
|
+
else
|
127
|
+
obj.binary_path = Luna::Binary::Common.instance.binary_path_merged
|
128
|
+
end
|
129
|
+
obj.run
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
desc '检查并上传带有标记:dev_env_use_binary的模块,上传repo和framework'
|
134
|
+
arg_name '参数:1.二进制路径(可以不传默认为当前目录下的/temp-luna-uploader/merged)'
|
135
|
+
command :update do |c|
|
136
|
+
c.action do |global_options,options,args|
|
137
|
+
obj = Luna::Binary::Refresh.new()
|
138
|
+
if args[0] != nil
|
139
|
+
obj.binary_path = args[0]
|
140
|
+
else
|
141
|
+
obj.binary_path = Luna::Binary::Common.instance.binary_path_merged
|
142
|
+
end
|
143
|
+
obj.run
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
desc 'build项目并合成带有arm64&x86的framework'
|
148
|
+
arg_name '1.xcworkspace 名称 eg:MyWorkSpace.xcworkspace 2.scheme eg: MyProject'
|
149
|
+
command :build do |c|
|
150
|
+
c.action do |global_options,options,args|
|
151
|
+
obj = Luna::Binary::Build.new()
|
152
|
+
obj.workspace=args[0]
|
153
|
+
obj.scheme=args[1]
|
154
|
+
obj.run
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
desc '合成带有arm64&x86的framework'
|
159
|
+
arg_name '1.armPath 2.x86path'
|
160
|
+
command :merge do |c|
|
161
|
+
c.action do |global_options,options,args|
|
162
|
+
obj = Luna::Binary::Build.new()
|
163
|
+
obj.mergeFrameWorks(args[0], args[1])
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
pre do |global,command,options,args|
|
168
|
+
# Pre logic here
|
169
|
+
# Return true to proceed; false to abort and not call the
|
170
|
+
# chosen command
|
171
|
+
# Use skips_pre before a command to skip this block
|
172
|
+
# on that command only
|
173
|
+
true
|
174
|
+
end
|
175
|
+
|
176
|
+
post do |global,command,options,args|
|
177
|
+
# Post logic here
|
178
|
+
# Use skips_post before a command to skip this
|
179
|
+
# block on that command only
|
180
|
+
end
|
181
|
+
|
182
|
+
on_error do |exception|
|
183
|
+
# Error logic here
|
184
|
+
# return false to skip default error handling
|
185
|
+
true
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
exit App.run(ARGV)
|