build: add Flatpak development build

The future is finally here, from this commit on you can hack in Nautilus
from any distro in a matter of minutes, and from a single click if you
are using GNOME Builder.

/me dances exhaustively

https://bugzilla.gnome.org/show_bug.cgi?id=775460
This commit is contained in:
Carlos Soriano 2016-12-01 12:24:13 +01:00
parent e9e33ded5a
commit 3e3bafe1eb

114
org.gnome.Nautilus.json Normal file
View file

@ -0,0 +1,114 @@
{
"app-id": "org.gnome.Nautilus",
"runtime": "org.gnome.Platform",
"runtime-version": "master",
"sdk": "org.gnome.Sdk",
"command": "nautilus",
"tags": ["devel", "development"],
"desktop-file-name-prefix": "(Development) ",
"finish-args": [
/* X11 + XShm access */
"--share=ipc", "--socket=x11",
/* Wayland access */
"--socket=wayland",
/* Online accounts support */
"--talk-name=org.gnome.OnlineAccounts",
/* Tracker */
"--talk-name=org.freedesktop.Tracker1",
/* XXX This sucks */
"--filesystem=home",
/* Browse gvfs */
"--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*",
/* Needed for dconf to work */
"--filesystem=xdg-run/dconf", "--filesystem=~/.config/dconf:ro",
"--talk-name=ca.desrt.dconf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
],
"build-options" : {
"cflags": "-O2 -g",
"cxxflags": "-O2 -g"
},
"cleanup": [ "/include", "/share/bash-completion" ],
"modules": [
{
"name": "libexif",
"sources": [
{
"type": "archive",
"url": "https://downloads.sourceforge.net/libexif/libexif-0.6.21.tar.bz2",
"sha256": "16cdaeb62eb3e6dfab2435f7d7bccd2f37438d21c5218ec4e58efa9157d4d41a"
},
/* For arm architectures */
{
"type": "shell",
"commands": [
"cp -f /usr/share/gnu-config/config.sub .",
"cp -f /usr/share/gnu-config/config.guess ."
]
}
]
},
{
"name": "exempi",
"config-opts": [
"--disable-unittest"
],
"sources": [
{
"type": "git",
"url": "https://anongit.freedesktop.org/git/exempi.git"
}
]
},
{
"name": "tracker",
"cleanup": [ "/bin", "/etc", "/libexec" ],
"config-opts": [ "--disable-miner-apps", "--disable-static",
"--disable-tracker-extract", "--disable-tracker-needle",
"--disable-tracker-preferences", "--disable-artwork",
"--disable-tracker-writeback", "--disable-miner-user-guides"],
"sources": [
{
"type": "git",
"url": "https://git.gnome.org/browse/tracker"
}
]
},
{
"name": "gnome-desktop",
"config-opts": ["--disable-debug-tools", "--disable-udev"],
"sources": [
{
"type": "git",
"url": "https://git.gnome.org/browse/gnome-desktop"
}
]
},
{
"name": "gnome-autoar",
"sources": [
{
"type": "git",
"url": "https://git.gnome.org/browse/gnome-autoar"
}
]
},
{
"name": "nautilus",
"config-opts": [
"--disable-static",
"--disable-desktop",
"--disable-selinux",
"--enable-xmp",
"--enable-libexif",
"--disable-update-mimedb"
],
"sources": [
{
"type": "git",
"url": "https://git.gnome.org/browse/nautilus"
}
]
}
]
}