Skip to content

Commit

Permalink
snap: disable tests build, add removable media and specify architectu…
Browse files Browse the repository at this point in the history
…res (#4619)

* snap: disable tests build, add removable media and specify architectures

* Move to gtk2 fixes the dialogs

* Add snap ignores to .gitignore

* Add source-type: git to enable submodules
  • Loading branch information
LyzardKing authored and Siedlerchr committed Jan 28, 2019
1 parent 095b70b commit fbf1cc9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ status.md
# Install4J
install4j6/

# Snap
parts/
stage/
prime/
*.snap
jabref_source.tar.bz2
snap/.snapcraft/

# Gradle
# generated when `gradlew --gui` is called
ui/
Expand Down
14 changes: 10 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: jabref
version: "git"
version-script: cat build.gradle | grep "^version =" | cut -d'"' -f2
#icon: snap/gui/icon.png
#icon: snap/gui/jabref.png
summary: Bibliography manager
description: JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format.

grade: devel
confinement: strict

architectures:
- build-on: amd64
- build-on: i386

apps:
jabref:
command: desktop-launch java -jar $SNAP/jar/JabRef-$SNAP_VERSION.jar
environment:
_JAVA_OPTIONS: "-Djava.util.prefs.systemRoot=$SNAP_USER_DATA/.java/etc/.java -Djava.util.prefs.userRoot=$SNAP_USER_DATA/.java/.userPrefs"
_JAVA_OPTIONS: "-Duser.home=$SNAP_USER_DATA"
plugs:
- desktop
- desktop-legacy
Expand All @@ -21,15 +25,17 @@ apps:
- home
- opengl
- network-bind
- removable-media

parts:
jabref:
plugin: gradle
source: .
source-type: git
stage-packages:
- openjdk-8-jre
- openjfx
- x11-utils
gradle-options: [snapJar]
gradle-options: [snapJar, -xtest]
gradle-output-dir: 'build/releases'
after: [desktop-gtk3]
after: [desktop-gtk2]

0 comments on commit fbf1cc9

Please sign in to comment.