Skip to content

Commit

Permalink
Initial manifest file for flatpak creation (JabRef#5409)
Browse files Browse the repository at this point in the history
Co-Authored-By: Galileo Sartor <galileo.sartor@gmail.com>
  • Loading branch information
2 people authored and koppor committed Oct 28, 2019
1 parent 6c48883 commit d41dec1
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ prime/
jabref_source.tar.bz2
snap/.snapcraft/

# flatpak
flatpak/.buildconfig
flatpak/JabRef-portable_linux.tar.gz

# Gradle
# generated when `gradlew --gui` is called
ui/
Expand Down Expand Up @@ -443,4 +447,4 @@ gradle-app.setting
-!/buildSrc/src/main/groovy/org/jabref/build
-
-# do not ignore JabRef icons (they are ignored by the macos setting above)
-!src/main/java/org/jabref/gui/icon
-!src/main/java/org/jabref/gui/icon
12 changes: 12 additions & 0 deletions flatpak/jabref.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Name=JabRef
GenericName=BibTeX Editor
Comment=JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format.
Type=Application
Terminal=false
Icon=org.jabref.jabref
Exec=JabRef %U
Keywords=bibtex;biblatex;latex;bibliography
Categories=Office;
StartupWMClass=org-jabref-JabRefMain
MimeType=text/x-bibtex;
35 changes: 35 additions & 0 deletions flatpak/org.jabref.jabref.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"app-id" : "org.jabref.jabref",
"runtime" : "org.freedesktop.Platform",
"runtime-version" : "18.08",
"sdk" : "org.freedesktop.Sdk",
"command" : "JabRef",
"modules" : [
{
"name" : "JabRef",
"buildsystem" : "simple",
"build-commands" : [
"tar -xzf JabRef-portable_linux.tar.gz --directory=/app/ --strip-components=1",
"install -D -m0644 /app/lib/JabRef.png /app/share/icons/hicolor/64x64/apps/org.jabref.jabref.png",
"install -D -m0644 org.jabref.jabref.desktop /app/share/applications/org.jabref.jabref.desktop"
],
"sources" : [
{
"type" : "file",
"url": "http://builds.jabref.org/master/JabRef-portable_linux.tar.gz",
"sha256": "be69feee0536fa8500dda867290dbeeeda6191c60e636a0b6e254fbaac02d471"
},
{
"type": "file",
"path": "org.jabref.jabref.desktop"
}
]
}
],
"finish-args" : [
"--socket=wayland",
"--socket=fallback-x11",
"--share=network",
"--filesystem=home"
]
}

0 comments on commit d41dec1

Please sign in to comment.