diff options
author | yjun | 2021-12-25 14:23:46 +0800 |
---|---|---|
committer | yjun | 2021-12-25 14:23:46 +0800 |
commit | f4c7b4f4d861049412bf2d275f9f3157a56b8828 (patch) | |
tree | d25b065e034af2c647f892f7e40e54cbda202978 | |
parent | 320fceb22231aad6e538de4402525c765cc4dcbf (diff) | |
download | aur-f4c7b4f4d861049412bf2d275f9f3157a56b8828.tar.gz |
fix desktop icon
ico format is not supported by the freedesktop.org standard.
https://wiki.archlinux.org/title/Desktop_entries\#Common_image_formats
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = dingtalk-bin pkgdesc = 钉钉 pkgver = 1.2.0.132 - pkgrel = 1 + pkgrel = 2 url = https://gov.dingtalk.com arch = x86_64 license = custom @@ -6,7 +6,7 @@ pkgname=dingtalk-bin _pkgname=dingtalk _pkgname2=com.alibabainc.dingtalk pkgver=1.2.0.132 -pkgrel=1 +pkgrel=2 pkgdesc="钉钉" arch=("x86_64") url="https://gov.dingtalk.com" @@ -49,8 +49,10 @@ package(){ # desktop enrty install -Dm644 ${_pkgname2}.desktop -t ${pkgdir}/usr/share/applications/ - # icons - install -Dm644 opt/apps/${_pkgname2}/files/logo.ico ${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.ico + # icons + # extract single image of size 48x48 + icotool -x -i 3 opt/apps/${_pkgname2}/files/logo.ico -o . + install -Dm644 logo_3_48x48x32.png ${pkgdir}/usr/share/pixmaps/${_pkgname}.png # license install -Dm644 service-terms-zh ${pkgdir}/usr/share/licenses/${_pkgname}/service-terms-zh.html |