Skip to content

Commit

Permalink
feat(cli): Add 64x64 png to default tauri icon command (#12204)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjf-dev authored Jan 4, 2025
1 parent f86e238 commit a0f2c84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/cli-generate-64x64-icon.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions crates/tauri-cli/src/icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>) -> Result<()> {
fn desktop_entries(out_dir: &Path) -> Vec<PngEntry> {
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 => "[email protected]".to_string(),
512 => "icon.png".to_string(),
Expand Down

0 comments on commit a0f2c84

Please sign in to comment.