Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial manifest file for flatpak creation #5409

Merged
merged 15 commits into from
Oct 28, 2019
Merged
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.deisi.jabref
deisi marked this conversation as resolved.
Show resolved Hide resolved
Exec=/usr/bin/flatpak run org.deisi.jabref @@u %U @@
deisi marked this conversation as resolved.
Show resolved Hide resolved
Keywords=bibtex;biblatex;latex;bibliography
Categories=Office;
StartupWMClass=org-jabref-JabRefMain
MimeType=text/x-bibtex;
33 changes: 33 additions & 0 deletions flatpak/org.jabref.jabref.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"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 -xvzf flatpak/JabRef-portable_linux.tar.gz -C /app/"
deisi marked this conversation as resolved.
Show resolved Hide resolved
],
"sources" : [
{
"type" : "archive",
deisi marked this conversation as resolved.
Show resolved Hide resolved
"path": "JabRef-portable_linux.tar.gz"
deisi marked this conversation as resolved.
Show resolved Hide resolved
}
deisi marked this conversation as resolved.
Show resolved Hide resolved
]
}
],
"finish-args" : [
"--env=PATH=/usr/bin:/app/JabRef/bin",
deisi marked this conversation as resolved.
Show resolved Hide resolved
"--socket=wayland",
"--socket=fallback-x11",
"--share=network",
"--filesystem=home"
],
deisi marked this conversation as resolved.
Show resolved Hide resolved
"build-options" : {
deisi marked this conversation as resolved.
Show resolved Hide resolved
"env" : {
deisi marked this conversation as resolved.
Show resolved Hide resolved
}
deisi marked this conversation as resolved.
Show resolved Hide resolved
}
deisi marked this conversation as resolved.
Show resolved Hide resolved
}