development/postman: Add desktop entry.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Ebben Aries 2023-09-09 17:25:18 -07:00 committed by Willy Sudiarto Raharjo
parent bd1e55237d
commit 9d98a6a1ce
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 21 additions and 0 deletions

View File

@ -1,2 +1,12 @@
( cd usr/bin ; rm -rf postman )
( cd usr/bin ; ln -sf /opt/postman/app/Postman postman )
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View File

@ -97,6 +97,9 @@ rm -rf Postman
mkdir -p $PKG/opt/$PRGNAM
cp -a * $PKG/opt/$PRGNAM
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View File

@ -0,0 +1,8 @@
[Desktop Entry]
Name=Postman
Comment=Postman API Platform
Exec=/usr/bin/postman %U
Icon=/opt/postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;