appiconset 2.2.0 → 2.3.0
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 +4 -4
- data/README.base.md +120 -0
- data/README.ja.md +57 -0
- data/README.md +25 -13
- data/lib/appiconset/generator.rb +2 -0
- data/lib/appiconset/version.rb +1 -1
- data/sample/tv/Icon@1x.png +0 -0
- data/sample/tv/Icon@2x.png +0 -0
- data/sample/tv-top-shelf/Icon@1x.png +0 -0
- data/sample/tv-top-shelf/Icon@2x.png +0 -0
- data/sample/tv-top-shelf-wide/Icon@1x.png +0 -0
- data/sample/tv-top-shelf-wide/Icon@2x.png +0 -0
- metadata +12 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16b9b06d04e6b8eb8f913c15624877438471e47de476c412c802b591b8e208a8
|
4
|
+
data.tar.gz: a321a318090c7408277a017112c4a9bc52a8fea7b05ef85eb9664890bedf7710
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a41586042832889063e5e448ee0066a2ec070a3f6ce132776d949828880db6cd276b13c08cd5cbbcce2302b75a91f2271c5682f3e3469da6b39a1434a018dd
|
7
|
+
data.tar.gz: 25494f65f26f2705386e2eb2ff4f29406a19b12ffd292f2aeac3bf88c76284e44cac3a7c994024d51e2a1ee7c855f8aff960331cec0ec01664fdeaed905ac60b
|
data/README.base.md
ADDED
@@ -0,0 +1,120 @@
|
|
1
|
+
<!---------------------------->
|
2
|
+
<!-- multilingual suffix: en, ja -->
|
3
|
+
<!-- no suffix: en -->
|
4
|
+
<!---------------------------->
|
5
|
+
|
6
|
+
<!-- $ mmg README.base.md -->
|
7
|
+
|
8
|
+
<!-- [ja] -->
|
9
|
+
|
10
|
+
# Appiconset
|
11
|
+
|
12
|
+
[](https://badge.fury.io/rb/appiconset)
|
13
|
+
|
14
|
+
1024px x 1024pxの画像からmacOSアプリやiOSアプリで必要になるアプリアイコンを書き出すRubyスクリプトです。
|
15
|
+
|
16
|
+
以下の環境で動作確認をしています。
|
17
|
+
* macOS 15.1
|
18
|
+
|
19
|
+
以下のプラットフォームのアイコン作成をサポートしています。
|
20
|
+
* iOS/iPadOS
|
21
|
+
* macOS
|
22
|
+
* Universal
|
23
|
+
* watchOS
|
24
|
+
* Android
|
25
|
+
* tvOS
|
26
|
+
|
27
|
+
# ガイド
|
28
|
+
|
29
|
+
## 正方形アイコン
|
30
|
+
|
31
|
+
1024px x 1024px の画像からアプリアイコンを作成します。
|
32
|
+
|
33
|
+
```
|
34
|
+
$ appiconset square -i='sample.jpg' -o='output'
|
35
|
+
```
|
36
|
+
|
37
|
+
Contents.jsonと複数のpngファイルが作成されます。
|
38
|
+
これらのファイルをXcodeプロジェクトの AppIcon.appiconset にコピーします。
|
39
|
+
|
40
|
+
|
41
|
+
## tvOSのアイコン
|
42
|
+
|
43
|
+
tvOSアプリ向けのアイコンを作成するには。4640px x 1440px の画像を用意します。
|
44
|
+
入力画像から以下の画像を生成します。
|
45
|
+
入力画像は tv-top-shelf-wide と同じ、tv-top-shelf は tv-top-shelf-wide から赤の領域が削除された画像、tvはtv-top-shelfから緑の領域が削除された画像になります。
|
46
|
+
|
47
|
+
| ディレクトリの名前 | サイズ | 画像 |
|
48
|
+
|--|--|--|
|
49
|
+
| tv | 400x1440 |  |
|
50
|
+
| tv-top-shelf | 3840x1440 | |
|
51
|
+
| tv-top-shelf-wide | 4640x1440 | |
|
52
|
+
|
53
|
+
```
|
54
|
+
$ appiconset tvos -i='sample.jpg' -o='output'
|
55
|
+
```
|
56
|
+
|
57
|
+
## 任意のサイズのアイコン
|
58
|
+
|
59
|
+
任意のサイズの画像から、1倍、2/3倍、1/3倍のアイコンを作成します。
|
60
|
+
|
61
|
+
```
|
62
|
+
$ appiconset universal -i='sample.jpg' -o='output'
|
63
|
+
```
|
64
|
+
|
65
|
+
<!-- [en] -->
|
66
|
+
|
67
|
+
# Appiconset
|
68
|
+
|
69
|
+
[](https://badge.fury.io/rb/appiconset)
|
70
|
+
|
71
|
+
Ruby script to write app icons required for macOS and iOS apps from 1024px x 1024px images.
|
72
|
+
|
73
|
+
We have confirmed the operation in the following environments.
|
74
|
+
* macOS 15.1
|
75
|
+
|
76
|
+
Icon creation is supported for the following platforms.
|
77
|
+
* iOS/iPadOS
|
78
|
+
* macOS
|
79
|
+
* Universal
|
80
|
+
* watchOS
|
81
|
+
* Android
|
82
|
+
* tvOS
|
83
|
+
|
84
|
+
# Guide
|
85
|
+
|
86
|
+
## Square icons
|
87
|
+
|
88
|
+
Create an app icon from a 1024px x 1024px image.
|
89
|
+
|
90
|
+
```
|
91
|
+
$ appiconset square -i='sample.jpg' -o='output'
|
92
|
+
```
|
93
|
+
|
94
|
+
A Contents.json and several png files will be created.
|
95
|
+
Copy these files to AppIcon.appiconset in the Xcode project.
|
96
|
+
|
97
|
+
|
98
|
+
## tvOS icons
|
99
|
+
|
100
|
+
To create an icon for a tvOS app, prepare a 4640px x 1440px image.
|
101
|
+
Generate the following image from the input image.
|
102
|
+
The input image is the same as tv-top-shelf-wide, tv-top-shelf is the image from tv-top-shelf-wide with the red area removed, and tv is the image from tv-top-shelf with the green area removed.
|
103
|
+
|
104
|
+
| Directory name | Size | Image |
|
105
|
+
|--|--|--|
|
106
|
+
| tv | 400x1440 |  |
|
107
|
+
| tv-top-shelf | 3840x1440 | |
|
108
|
+
| tv-top-shelf-wide | 4640x1440 | |
|
109
|
+
|
110
|
+
```
|
111
|
+
$ appiconset tvos -i='sample.jpg' -o='output'
|
112
|
+
```
|
113
|
+
|
114
|
+
## Icons of any size
|
115
|
+
|
116
|
+
Create 1x, 2/3x, and 1/3x icons from any size image.
|
117
|
+
|
118
|
+
```
|
119
|
+
$ appiconset universal -i='sample.jpg' -o='output'
|
120
|
+
```
|
data/README.ja.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
# Appiconset
|
5
|
+
|
6
|
+
[](https://badge.fury.io/rb/appiconset)
|
7
|
+
|
8
|
+
1024px x 1024pxの画像からmacOSアプリやiOSアプリで必要になるアプリアイコンを書き出すRubyスクリプトです。
|
9
|
+
|
10
|
+
以下の環境で動作確認をしています。
|
11
|
+
* macOS 15.1
|
12
|
+
|
13
|
+
以下のプラットフォームのアイコン作成をサポートしています。
|
14
|
+
* iOS/iPadOS
|
15
|
+
* macOS
|
16
|
+
* Universal
|
17
|
+
* watchOS
|
18
|
+
* Android
|
19
|
+
* tvOS
|
20
|
+
|
21
|
+
# ガイド
|
22
|
+
|
23
|
+
## 正方形アイコン
|
24
|
+
|
25
|
+
1024px x 1024px の画像からアプリアイコンを作成します。
|
26
|
+
|
27
|
+
```
|
28
|
+
$ appiconset square -i='sample.jpg' -o='output'
|
29
|
+
```
|
30
|
+
|
31
|
+
Contents.jsonと複数のpngファイルが作成されます。
|
32
|
+
これらのファイルをXcodeプロジェクトの AppIcon.appiconset にコピーします。
|
33
|
+
|
34
|
+
|
35
|
+
## tvOSのアイコン
|
36
|
+
|
37
|
+
tvOSアプリ向けのアイコンを作成するには。4640px x 1440px の画像を用意します。
|
38
|
+
入力画像から以下の画像を生成します。
|
39
|
+
入力画像は tv-top-shelf-wide と同じ、tv-top-shelf は tv-top-shelf-wide から赤の領域が削除された画像、tvはtv-top-shelfから緑の領域が削除された画像になります。
|
40
|
+
|
41
|
+
| ディレクトリの名前 | サイズ | 画像 |
|
42
|
+
|--|--|--|
|
43
|
+
| tv | 400x1440 |  |
|
44
|
+
| tv-top-shelf | 3840x1440 | |
|
45
|
+
| tv-top-shelf-wide | 4640x1440 | |
|
46
|
+
|
47
|
+
```
|
48
|
+
$ appiconset tvos -i='sample.jpg' -o='output'
|
49
|
+
```
|
50
|
+
|
51
|
+
## 任意のサイズのアイコン
|
52
|
+
|
53
|
+
任意のサイズの画像から、1倍、2/3倍、1/3倍のアイコンを作成します。
|
54
|
+
|
55
|
+
```
|
56
|
+
$ appiconset universal -i='sample.jpg' -o='output'
|
57
|
+
```
|
data/README.md
CHANGED
@@ -1,11 +1,16 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
1
4
|
# Appiconset
|
2
5
|
|
3
|
-
|
6
|
+
[](https://badge.fury.io/rb/appiconset)
|
4
7
|
|
5
|
-
|
8
|
+
Ruby script to write app icons required for macOS and iOS apps from 1024px x 1024px images.
|
9
|
+
|
10
|
+
We have confirmed the operation in the following environments.
|
6
11
|
* macOS 15.1
|
7
12
|
|
8
|
-
|
13
|
+
Icon creation is supported for the following platforms.
|
9
14
|
* iOS/iPadOS
|
10
15
|
* macOS
|
11
16
|
* Universal
|
@@ -13,32 +18,39 @@
|
|
13
18
|
* Android
|
14
19
|
* tvOS
|
15
20
|
|
16
|
-
#
|
21
|
+
# Guide
|
17
22
|
|
18
|
-
##
|
23
|
+
## Square icons
|
19
24
|
|
20
|
-
1024px x 1024px
|
25
|
+
Create an app icon from a 1024px x 1024px image.
|
21
26
|
|
22
27
|
```
|
23
28
|
$ appiconset square -i='sample.jpg' -o='output'
|
24
29
|
```
|
25
30
|
|
26
|
-
Contents.json
|
27
|
-
|
31
|
+
A Contents.json and several png files will be created.
|
32
|
+
Copy these files to AppIcon.appiconset in the Xcode project.
|
33
|
+
|
28
34
|
|
35
|
+
## tvOS icons
|
29
36
|
|
30
|
-
|
37
|
+
To create an icon for a tvOS app, prepare a 4640px x 1440px image.
|
38
|
+
Generate the following image from the input image.
|
39
|
+
The input image is the same as tv-top-shelf-wide, tv-top-shelf is the image from tv-top-shelf-wide with the red area removed, and tv is the image from tv-top-shelf with the green area removed.
|
31
40
|
|
32
|
-
|
33
|
-
|
41
|
+
| Directory name | Size | Image |
|
42
|
+
|--|--|--|
|
43
|
+
| tv | 400x1440 |  |
|
44
|
+
| tv-top-shelf | 3840x1440 | |
|
45
|
+
| tv-top-shelf-wide | 4640x1440 | |
|
34
46
|
|
35
47
|
```
|
36
48
|
$ appiconset tvos -i='sample.jpg' -o='output'
|
37
49
|
```
|
38
50
|
|
39
|
-
##
|
51
|
+
## Icons of any size
|
40
52
|
|
41
|
-
|
53
|
+
Create 1x, 2/3x, and 1/3x icons from any size image.
|
42
54
|
|
43
55
|
```
|
44
56
|
$ appiconset universal -i='sample.jpg' -o='output'
|
data/lib/appiconset/generator.rb
CHANGED
data/lib/appiconset/version.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appiconset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- arthur87
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -81,6 +81,8 @@ files:
|
|
81
81
|
- ".rubocop_todo.yml"
|
82
82
|
- ".travis.yml"
|
83
83
|
- CHANGELOG.md
|
84
|
+
- README.base.md
|
85
|
+
- README.ja.md
|
84
86
|
- README.md
|
85
87
|
- Rakefile
|
86
88
|
- exe/appiconset
|
@@ -97,9 +99,16 @@ files:
|
|
97
99
|
- lib/appiconset/settings/universal-xcode9.1-Contents.json
|
98
100
|
- lib/appiconset/settings/watch-xcode10.0-Contents.json
|
99
101
|
- lib/appiconset/version.rb
|
102
|
+
- sample/tv-top-shelf-wide/Icon@1x.png
|
103
|
+
- sample/tv-top-shelf-wide/Icon@2x.png
|
104
|
+
- sample/tv-top-shelf/Icon@1x.png
|
105
|
+
- sample/tv-top-shelf/Icon@2x.png
|
106
|
+
- sample/tv/Icon@1x.png
|
107
|
+
- sample/tv/Icon@2x.png
|
100
108
|
- sig/appiconset.rbs
|
101
109
|
homepage: https://github.com/arthur87/appiconset
|
102
|
-
licenses:
|
110
|
+
licenses:
|
111
|
+
- MIT
|
103
112
|
metadata:
|
104
113
|
homepage_uri: https://github.com/arthur87/appiconset
|
105
114
|
source_code_uri: https://github.com/arthur87/appiconset
|