Skip to content

Commit

Permalink
Merge pull request #111 from mrbesen/windowsIcon
Browse files Browse the repository at this point in the history
add windows icon
  • Loading branch information
cnlohr committed Feb 29, 2024
2 parents 0fd9324 + 1803de6 commit 2498fa4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -30,6 +30,7 @@ jobs:
g++-mingw-w64-i686 \
devscripts \
appstream \
imagemagick \
desktop-file-utils
- name: Build
Expand All @@ -39,7 +40,7 @@ jobs:
with:
name: cnping-exe
path: "*.exe"

- name: Build deb
run: debuild --no-sign

Expand Down
11 changes: 11 additions & 0 deletions Makefile
Expand Up @@ -77,3 +77,14 @@ updateicons : ${ICONSPATH}scalable/apps/${APPNAME}.svg
convert $^ -resize 256x256 ${ICONSPATH}256x256/apps/${APPNAME}.png
convert $^ -resize 1024x1024 ${ICONSPATH}1024x1024/apps/${APPNAME}.png

# after creating the ico file use GIMP to compress it:
# Image-> Mode -> Indexed...
# Choose "Generate optimum palette"
# Maximum number of colors: 3 (may change if the icon changes)
# "Convert"
# File -> Export As
# Check "Compressed (PNG)" in every resolution
# "Export"
cnping.ico: ${ICONSPATH}scalable/apps/${APPNAME}.svg
convert $^ -density 300 -define icon:auto-resize=256,64,16 -background none $@

Binary file added cnping.ico
Binary file not shown.
1 change: 1 addition & 0 deletions resources.rc
Expand Up @@ -22,3 +22,4 @@ BEGIN
PUSHBUTTON "&Close", 8, 175, 80, 100, 10
END

MAIN_ICON ICON "cnping.ico"

0 comments on commit 2498fa4

Please sign in to comment.