Skip to content

Commit

Permalink
Add normally available app logo icons to linux pkgs
Browse files Browse the repository at this point in the history
  - fix for issue safing#93
  - adds normally availble icon sizes that are missing
  - adds SVG icon
  • Loading branch information
mattkeenan committed Jul 23, 2023
1 parent 43b1901 commit a8d9f9d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
4 changes: 3 additions & 1 deletion linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
22 changes: 17 additions & 5 deletions linux/nfpm.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,30 @@ 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/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
Expand Down
8 changes: 8 additions & 0 deletions linux/portmaster_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a8d9f9d

Please sign in to comment.