yamg 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -6
- data/lib/yamg/cli.rb +2 -2
- data/lib/yamg/screenshot.rb +2 -0
- data/lib/yamg/templates.yaml +3 -1
- data/lib/yamg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 864543f8189e6c7e461436d69138a2d9e9758e8f
|
4
|
+
data.tar.gz: 1f3ffd77761612a7b8e71e021af86422711e9884
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2409b550c86a27aaf5283f96d539c74b96c2a078b866c11da2b97d043743fa22e66221404a7297797a45a52e335bb573a3d7ccfcc2b298ae3808169cc3e17b37
|
7
|
+
data.tar.gz: 1571dda9d3420af019e8d962c580f8e19bf7854d5458078e622108c4cd2f445b42465d802b220788a6d871f5f449a0d505a4c5ea5cbe8acd2e9db80953bc5e58
|
data/README.md
CHANGED
@@ -82,6 +82,7 @@ art
|
|
82
82
|
From the `.yamg.yml` you may configure differents source paths.
|
83
83
|
Also configure every export location you need (check #Support)
|
84
84
|
|
85
|
+
|
85
86
|
## Icons
|
86
87
|
|
87
88
|
Your main icon(s) may be SVG or PNG. Or both:
|
@@ -149,23 +150,36 @@ screenshots:
|
|
149
150
|
|
150
151
|
Note: Waiting for a pull-request on screencap for hidpi.
|
151
152
|
|
152
|
-
|
153
153
|
## Config file
|
154
154
|
|
155
|
-
|
156
|
-
|
157
|
-
```
|
155
|
+
```yaml
|
158
156
|
icon:
|
159
|
-
path:
|
160
|
-
round:
|
157
|
+
path: 'folder/'
|
158
|
+
round: true # defaults to false
|
159
|
+
|
160
|
+
splash:
|
161
|
+
path: 'folder/'
|
162
|
+
background: #rgb
|
163
|
+
|
164
|
+
screenshot:
|
165
|
+
path: 'url://'
|
161
166
|
```
|
162
167
|
|
168
|
+
|
163
169
|
Custom location:
|
164
170
|
|
165
171
|
some-project:
|
166
172
|
icon: [32, 64, 128]
|
167
173
|
|
168
174
|
|
175
|
+
Note: For Apple Store make sure to add round false if your default is true:
|
176
|
+
|
177
|
+
```
|
178
|
+
compile:
|
179
|
+
apple:
|
180
|
+
rounded: false
|
181
|
+
```
|
182
|
+
|
169
183
|
## Support
|
170
184
|
|
171
185
|
* iOS Project
|
@@ -199,6 +213,11 @@ You may generate assets for both, but the difference is:
|
|
199
213
|
Phonegap (`www/res`) assets are used only on Phonegap Build.
|
200
214
|
To build locally use Cordova assets (`platforms/<platform>/*`)
|
201
215
|
|
216
|
+
### Cordova Rake Tasks
|
217
|
+
|
218
|
+
If you're working with cordova, add some Ruby to it:
|
219
|
+
|
220
|
+
https://github.com/nofxx/cordova-rake
|
202
221
|
|
203
222
|
## Issues
|
204
223
|
|
data/lib/yamg/cli.rb
CHANGED
@@ -97,8 +97,8 @@ module YAMG
|
|
97
97
|
puts
|
98
98
|
puts Rainbow(Thread.list.size.to_s + ' jobs to go').black
|
99
99
|
Thread.list.reject { |t| t == Thread.current }.each(&:join)
|
100
|
-
puts Rainbow('-' * 59).black
|
101
|
-
puts Rainbow("Done compile #{Time.now - time}").red
|
100
|
+
puts Rainbow("\n" + '-' * 59).black
|
101
|
+
puts Rainbow("Done compile #{(Time.now - time).to_i}s").red
|
102
102
|
end
|
103
103
|
end
|
104
104
|
end
|
data/lib/yamg/screenshot.rb
CHANGED
data/lib/yamg/templates.yaml
CHANGED
@@ -25,17 +25,19 @@ android:
|
|
25
25
|
'res/drawable-mdpi/icon.png': 48
|
26
26
|
'res/drawable-hdpi/icon.png': 72
|
27
27
|
'res/drawable-xhdpi/icon.png': 96
|
28
|
-
'res/drawable-xxhdpi/icon.png':
|
28
|
+
'res/drawable-xxhdpi/icon.png': 144
|
29
29
|
'bin/res/drawable/icon.png': 96
|
30
30
|
'bin/res/drawable-ldpi/icon.png': 36
|
31
31
|
'bin/res/drawable-mdpi/icon.png': 48
|
32
32
|
'bin/res/drawable-hdpi/icon.png': 72
|
33
33
|
'bin/res/drawable-xhdpi/icon.png': 96
|
34
|
+
'bin/res/drawable-xxhdpi/icon.png': 144
|
34
35
|
'ant-build/res/drawable/icon.png': 96
|
35
36
|
'ant-build/res/drawable-ldpi/icon.png': 36
|
36
37
|
'ant-build/res/drawable-mdpi/icon.png': 48
|
37
38
|
'ant-build/res/drawable-hdpi/icon.png': 72
|
38
39
|
'ant-build/res/drawable-xhdpi/icon.png': 96
|
40
|
+
'ant-build/res/drawable-xxhdpi/icon.png': 144
|
39
41
|
splash:
|
40
42
|
'res/drawable-port-ldpi/screen.png': [200, 320]
|
41
43
|
'res/drawable-port-mdpi/screen.png': [320, 480]
|
data/lib/yamg/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yamg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcos Piccinini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_magick
|