Skip to content

Commit fbf1cc9

Browse files
LyzardKingSiedlerchr
authored andcommitted
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
1 parent 095b70b commit fbf1cc9

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ status.md
1010
# Install4J
1111
install4j6/
1212

13+
# Snap
14+
parts/
15+
stage/
16+
prime/
17+
*.snap
18+
jabref_source.tar.bz2
19+
snap/.snapcraft/
20+
1321
# Gradle
1422
# generated when `gradlew --gui` is called
1523
ui/

snap/snapcraft.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
name: jabref
22
version: "git"
33
version-script: cat build.gradle | grep "^version =" | cut -d'"' -f2
4-
#icon: snap/gui/icon.png
4+
#icon: snap/gui/jabref.png
55
summary: Bibliography manager
66
description: JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format.
77

88
grade: devel
99
confinement: strict
1010

11+
architectures:
12+
- build-on: amd64
13+
- build-on: i386
14+
1115
apps:
1216
jabref:
1317
command: desktop-launch java -jar $SNAP/jar/JabRef-$SNAP_VERSION.jar
1418
environment:
15-
_JAVA_OPTIONS: "-Djava.util.prefs.systemRoot=$SNAP_USER_DATA/.java/etc/.java -Djava.util.prefs.userRoot=$SNAP_USER_DATA/.java/.userPrefs"
19+
_JAVA_OPTIONS: "-Duser.home=$SNAP_USER_DATA"
1620
plugs:
1721
- desktop
1822
- desktop-legacy
@@ -21,15 +25,17 @@ apps:
2125
- home
2226
- opengl
2327
- network-bind
28+
- removable-media
2429

2530
parts:
2631
jabref:
2732
plugin: gradle
2833
source: .
34+
source-type: git
2935
stage-packages:
3036
- openjdk-8-jre
3137
- openjfx
3238
- x11-utils
33-
gradle-options: [snapJar]
39+
gradle-options: [snapJar, -xtest]
3440
gradle-output-dir: 'build/releases'
35-
after: [desktop-gtk3]
41+
after: [desktop-gtk2]

0 commit comments

Comments
 (0)