Skip to content

Commit

Permalink
Cleanup script
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Jul 30, 2024
1 parent a7503e2 commit 97a9ac6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 1 addition & 3 deletions psst-gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ build = "build.rs"
description = "Fast Spotify client with native GUI"
repository = "https://github.com/jpochyla/psst"


[features]
default = ["cpal"]
cpal = ["psst-core/cpal"]
Expand Down Expand Up @@ -67,8 +66,7 @@ icon = [
"assets/logo_128.png",
"assets/logo_256.png",
"assets/logo_512.png",
"assets/logo.icns",

"assets/logo.icns"
]
version = "0.1.0"
resources = []
Expand Down
12 changes: 7 additions & 5 deletions psst-gui/build-icons.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
#!/bin/bash
set -e

# Temp folder
mkdir icons

# Generate PNG icons from SVG
for size in 16 32 64 128 256 512; do
rsvg-convert -w $size -h $size assets/logo.svg -o icons/logo_${size}.png
done

# Generate ICO for Windows
magick icons/logo_*.png icons/psst.ico

# Generate ICNS for macOS
mkdir -p icons/psst.iconset
for size in 16 32 64 128 256 512; do
cp icons/logo_${size}.png icons/psst.iconset/icon_${size}x${size}.png
cp icons/logo_${size}.png icons/psst.iconset/icon_$((size/2))x$((size/2))@2x.png
done
iconutil -c icns icons/psst.iconset -o icons/psst.icns
rm -r icons/psst.iconset
iconutil -c icns icons/psst.iconset -o assets/logo.icns

# Cleanup
rm -r icons

0 comments on commit 97a9ac6

Please sign in to comment.