Skip to content

Commit

Permalink
Add launcher to fix extension import in snap (JabRef#6439)
Browse files Browse the repository at this point in the history
  • Loading branch information
LyzardKing authored and dextep committed May 8, 2020
1 parent 81d268b commit 25ec596
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snap/local/JabRef-launcher
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/sh
DIR="$SNAP/lib/runtime/bin"
"$DIR/java" -p "$DIR/../app" -m org.jabref/org.jabref.JabRefLauncher "$@"
9 changes: 9 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,12 @@ parts:
snapcraftctl build
snapcraftctl set-version "$(cat $SNAPCRAFT_PART_INSTALL/lib/app/JabRef.cfg | grep "app.version=" | cut -d'=' -f2)"
sed -i 's|/opt/jabref/lib/jabrefHost.py|/snap/bin/jabref.browser-proxy|g' $SNAPCRAFT_PART_INSTALL/lib/native-messaging-host/*/org.jabref.jabref.json
rm $SNAPCRAFT_PART_INSTALL/bin/JabRef
jabref-launcher:
after:
- jabref
source: snap/local
source-type: local
plugin: dump
organize:
JabRef-launcher: bin/JabRef

0 comments on commit 25ec596

Please sign in to comment.