From fbf1cc9a406da6018619887b73506a89e1535f14 Mon Sep 17 00:00:00 2001 From: Galileo Sartor Date: Mon, 28 Jan 2019 18:13:56 +0100 Subject: [PATCH] snap: disable tests build, add removable media and specify architectures (#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 --- .gitignore | 8 ++++++++ snap/snapcraft.yaml | 14 ++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 7c7850841ea..39f4c1f4ac2 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index cdc75820ea6..b26f84fef0d 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -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 @@ -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]