Skip to content

Commit 12e9d81

Browse files
feat(cli): Add icon command (tauricon) (#4992)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 0837454 commit 12e9d81

File tree

7 files changed

+269
-48
lines changed

7 files changed

+269
-48
lines changed

.changes/cli-tauricon.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cli.rs": minor
3+
---
4+
5+
Add `icon` command to generate icons.

tooling/bundler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ zip = "0.6"
4949
semver = "1"
5050

5151
[target."cfg(target_os = \"macos\")".dependencies]
52-
icns = "0.3"
52+
icns = { package = "tauri-icns", version = "0.1" }
5353
time = { version = "0.3", features = [ "formatting" ] }
5454
plist = "1"
5555

tooling/cli/Cargo.lock

Lines changed: 18 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tooling/cli/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ ignore = "0.4"
6565
ctrlc = "3.2"
6666
log = { version = "0.4.17", features = [ "kv_unstable", "kv_unstable_std" ] }
6767
env_logger = "0.9.0"
68+
icns = { package = "tauri-icns", version = "0.1" }
69+
image = { version = "0.24", default-features = false, features = [ "ico" ] }
6870

6971
[target."cfg(windows)".dependencies]
7072
winapi = { version = "0.3", features = [ "handleapi", "processenv", "winbase", "wincon", "winnt" ] }

tooling/cli/src/helpers/icns.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"16x16": {
3+
"name": "icon_16x16.png",
4+
"size": 16,
5+
"ostype": "icp4"
6+
},
7+
"16x16@2x": {
8+
"name": "icon_16x16@2x.png",
9+
"size": 32,
10+
"ostype": "ic11"
11+
},
12+
"32x32": {
13+
"name": "icon_32x32.png",
14+
"size": 32,
15+
"ostype": "icp5"
16+
},
17+
"32x32@2x": {
18+
"name": "icon_32x32@2x.png",
19+
"size": 64,
20+
"ostype": "ic12"
21+
},
22+
"128x128": {
23+
"name": "icon_128x128.png",
24+
"size": 128,
25+
"ostype": "ic07"
26+
},
27+
"128x128@2x": {
28+
"name": "icon_128x128@2x.png",
29+
"size": 256,
30+
"ostype": "ic13"
31+
},
32+
"256x256": {
33+
"name": "icon_256x256.png",
34+
"size": 256,
35+
"ostype": "ic08"
36+
},
37+
"256x256@2x": {
38+
"name": "icon_256x256@2x.png",
39+
"size": 512,
40+
"ostype": "ic14"
41+
},
42+
"512x512": {
43+
"name": "icon_512x512.png",
44+
"size": 512,
45+
"ostype": "ic09"
46+
},
47+
"512x512@2x": {
48+
"name": "icon_512x512@2x.png",
49+
"size": 1024,
50+
"ostype": "ic10"
51+
}
52+
}

0 commit comments

Comments
 (0)