cnping

Minimal Graphical Ping Tool
git clone https://git.sinitax.com/cnlohr/cnping
Log | Files | Refs | Submodules | README | LICENSE | sfeed.txt

commit 2498fa4df1b4eff0df1f75b5f393e620bafd6997
parent 0fd932491b99e1792b58a58d0f0e643c81a062ab
Author: CNLohr <lohr85@gmail.com>
Date:   Wed, 28 Feb 2024 22:24:53 -0800

Merge pull request #111 from mrbesen/windowsIcon

add windows icon
Diffstat:
M.github/workflows/build.yml | 3++-
MMakefile | 11+++++++++++
Acnping.ico | 0
Mresources.rc | 1+
4 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml @@ -30,6 +30,7 @@ jobs: g++-mingw-w64-i686 \ devscripts \ appstream \ + imagemagick \ desktop-file-utils - name: Build @@ -39,7 +40,7 @@ jobs: with: name: cnping-exe path: "*.exe" - + - name: Build deb run: debuild --no-sign diff --git a/Makefile b/Makefile @@ -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 $@ + diff --git a/cnping.ico b/cnping.ico Binary files differ. diff --git a/resources.rc b/resources.rc @@ -22,3 +22,4 @@ BEGIN PUSHBUTTON "&Close", 8, 175, 80, 100, 10 END +MAIN_ICON ICON "cnping.ico"