burtonageo / cargo-bundle

Wrap rust executables in OS-specific app bundles
Other
1.1k stars 78 forks source link

macOS Bundle Icon color messed up #180

Open jakobhellermann opened 8 months ago

jakobhellermann commented 8 months ago

I have a Cargo.toml that includes an icon like this:

[package.metadata.bundle]
name = "Atlas"
identifier = "io.github.jakobhellermann.atlas"
icon = ["ui/assets/icon/icon_128.png"]

and this icon icon_128

But when I run cargo bundle the image ends up looking like this:

Bildschirmfoto 2024-03-19 um 16 40 20

I honestly have no idea why this would be happening.

jakobhellermann commented 8 months ago

Hm, if I use my non-downscaled image it works. icon

But I generated the smaller one using convert icon.png -resize 128x128 icon_128.png, so I don't know what exactly in the imagemagick output broke it.