diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 896d97b..d7c0d3d 100644 --- 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 index 8f90785..97be216 100644 --- 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 new file mode 100644 index 0000000..3ecf7c3 Binary files /dev/null and b/cnping.ico differ diff --git a/resources.rc b/resources.rc index b0c72c6..8c75e44 100644 --- a/resources.rc +++ b/resources.rc @@ -22,3 +22,4 @@ BEGIN PUSHBUTTON "&Close", 8, 175, 80, 100, 10 END +MAIN_ICON ICON "cnping.ico"