From ec73f999e8f6862b0133900fc6f5ea15e03378c4 Mon Sep 17 00:00:00 2001 From: Matt K Date: Sun, 23 Jul 2023 15:24:03 +0100 Subject: [PATCH] Add normally available app logo icons to linux pkgs - fix for issue #93 - adds normally availble icon sizes that are missing - adds SVG icon --- linux/Makefile | 4 +++- linux/nfpm.yaml.template | 20 +++++++++++++++----- linux/portmaster_logo.svg | 8 ++++++++ 3 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 linux/portmaster_logo.svg diff --git a/linux/Makefile b/linux/Makefile index 6d96861..17f97ea 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -12,10 +12,12 @@ nfpm.yaml: portmaster-start build: icons nfpm.yaml gen-scripts gen-pkgbuild icons: - for res in 16 32 48 96 128 ; do \ + for res in 16 22 24 32 48 64 96 128 256 ; do \ mkdir -p icons/$${res}x$${res} ; \ convert ./portmaster_logo.png -resize "$${res}x$${res}" "icons/$${res}x$${res}/portmaster.png" ; \ done + mkdir -p icons/symbolic/apps + cp ./portmaster_logo.svg icons/symbolic/apps/portmaster-symbolic.svg portmaster-start: curl --fail --user-agent GitHub -o portmaster-start $(STARTURL) diff --git a/linux/nfpm.yaml.template b/linux/nfpm.yaml.template index 428a276..42bd631 100644 --- a/linux/nfpm.yaml.template +++ b/linux/nfpm.yaml.template @@ -48,18 +48,28 @@ contents: # # Icons # -- src: icons/32x32/portmaster.png +- src: icons/32x32/portmaster.png dst: /usr/share/pixmaps/portmaster.png -- src: icons/16x16/portmaster.png +- src: icons/16x16/portmaster.png dst: /usr/share/icons/hicolor/16x16/apps/portmaster.png -- src: icons/32x32/portmaster.png +- src: icons/22x22/portmaster.png + dst: /usr/share/icons/hicolor/22x22/apps/portmaster.png +- src: icons/24x24/portmaster.png + dst: /usr/share/icons/hicolor/24x24/apps/portmaster.png +- src: icons/32x32/portmaster.png dst: /usr/share/icons/hicolor/32x32/apps/portmaster.png -- src: icons/48x48/portmaster.png +- src: icons/48x48/portmaster.png dst: /usr/share/icons/hicolor/48x48/apps/portmaster.png -- src: icons/96x96/portmaster.png +- src: icons/64x64/portmaster.png + dst: /usr/share/icons/hicolor/64x64/apps/portmaster.png +- src: icons/96x96/portmaster.png dst: /usr/share/icons/hicolor/96x96/apps/portmaster.png - src: icons/128x128/portmaster.png dst: /usr/share/icons/hicolor/128x128/apps/portmaster.png +- src: icons/256x256/portmaster.png + dst: /usr/share/icons/hicolor/256x256/apps/portmaster.png +- src: icons/symbolic/apps/portmaster-symbolic.svg + dst: /usr/share/icons/hicolor/symbolic/apps/portmaster-symbolic.svg scripts: preinstall: ./scripts/preinstall.sh postinstall: ./scripts/postinstall.sh diff --git a/linux/portmaster_logo.svg b/linux/portmaster_logo.svg new file mode 100644 index 0000000..fbde5b8 --- /dev/null +++ b/linux/portmaster_logo.svg @@ -0,0 +1,8 @@ + + + + + + + +