Skip to content

Commit a0f2c84

Browse files
authored
feat(cli): Add 64x64 png to default tauri icon command (#12204)
1 parent f86e238 commit a0f2c84

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changes/cli-generate-64x64-icon.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri-cli': 'patch:enhance'
3+
'@tauri-apps/cli': 'patch:enhance'
4+
---
5+
6+
Enhance `tauri icon` command by including 64x64 png size in default icon sizes.

crates/tauri-cli/src/icon.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,13 @@ fn ico(source: &Source, out_dir: &Path) -> Result<()> {
267267
Ok(())
268268
}
269269

270-
// Generate .png files in 32x32, 128x128, 256x256, 512x512 (icon.png)
270+
// Generate .png files in 32x32, 64x64, 128x128, 256x256, 512x512 (icon.png)
271271
// Main target: Linux
272272
fn png(source: &Source, out_dir: &Path, ios_color: Rgba<u8>) -> Result<()> {
273273
fn desktop_entries(out_dir: &Path) -> Vec<PngEntry> {
274274
let mut entries = Vec::new();
275275

276-
for size in [32, 128, 256, 512] {
276+
for size in [32, 64, 128, 256, 512] {
277277
let file_name = match size {
278278
256 => "128x128@2x.png".to_string(),
279279
512 => "icon.png".to_string(),

0 commit comments

Comments
 (0)