Skip to content

Commit

Permalink
Merge pull request #5455 from LyzardKing/master
Browse files Browse the repository at this point in the history
Fix postrm in deb
  • Loading branch information
Siedlerchr authored Oct 17, 2019
2 parents 442618b + 1f8f628 commit 26a1d29
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,6 @@ jlink {
'--linux-menu-group', 'Office;',
'--linux-rpm-license-type', 'MIT',
// '--license-file', "${projectDir}/LICENSE.md",
'--file-associations', "${projectDir}/buildres/linux/desktop.properties",
'--description', 'JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format.',
'--linux-shortcut'
]
Expand Down
4 changes: 2 additions & 2 deletions buildres/linux/copyright
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: *
Copyright: APPLICATION_COPYRIGHT
License: APPLICATION_LICENSE_TEXT
Copyright: Copyright (C) 2003-2019 JabRef Authors
License: MIT
1 change: 0 additions & 1 deletion buildres/linux/desktop.properties

This file was deleted.

1 change: 1 addition & 0 deletions buildres/linux/jabref-JabRef.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Exec=APPLICATION_LAUNCHER
Icon=APPLICATION_ICON
Terminal=false
Type=Application
MimeType=text/x-bibtex;
Categories=DEPLOY_BUNDLE_CATEGORY
Keywords=bibtex;biblatex;latex;bibliography
StartupWMClass=org-jabref-JabRefMain
7 changes: 4 additions & 3 deletions buildres/linux/prerm → buildres/linux/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ set -e
# the debian-policy package
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
INSTALL_PATH="/usr/lib/mozilla/native-messaging-hosts/"
if grep --quiet '"path": "/opt' /usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json; then
rm -D -m0755 /opt/jabref/lib/org.jabref.jabref.json $INSTALL_PATH
INSTALL_PATH="/usr/lib/mozilla/native-messaging-hosts"
if grep --quiet '"path": "/opt' $INSTALL_PATH/org.jabref.jabref.json; then
rm $INSTALL_PATH/org.jabref.jabref.json
fi
;;

*)
Expand Down

0 comments on commit 26a1d29

Please sign in to comment.