diff --git a/.changes/cli-generate-64x64-icon.md b/.changes/cli-generate-64x64-icon.md new file mode 100644 index 000000000000..18a0b9151757 --- /dev/null +++ b/.changes/cli-generate-64x64-icon.md @@ -0,0 +1,6 @@ +--- +'tauri-cli': 'patch:enhance' +'@tauri-apps/cli': 'patch:enhance' +--- + +Enhance `tauri icon` command by including 64x64 png size in default icon sizes. \ No newline at end of file diff --git a/crates/tauri-cli/src/icon.rs b/crates/tauri-cli/src/icon.rs index e14f078e8f7f..f0277f17fd95 100644 --- a/crates/tauri-cli/src/icon.rs +++ b/crates/tauri-cli/src/icon.rs @@ -267,13 +267,13 @@ fn ico(source: &Source, out_dir: &Path) -> Result<()> { Ok(()) } -// Generate .png files in 32x32, 128x128, 256x256, 512x512 (icon.png) +// Generate .png files in 32x32, 64x64, 128x128, 256x256, 512x512 (icon.png) // Main target: Linux fn png(source: &Source, out_dir: &Path, ios_color: Rgba) -> Result<()> { fn desktop_entries(out_dir: &Path) -> Vec { let mut entries = Vec::new(); - for size in [32, 128, 256, 512] { + for size in [32, 64, 128, 256, 512] { let file_name = match size { 256 => "128x128@2x.png".to_string(), 512 => "icon.png".to_string(),