-
Notifications
You must be signed in to change notification settings - Fork 40
Flatpakization #157
Flatpakization #157
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
*~ | ||
*#* | ||
build | ||
flatpak | ||
.flatpak-builder/* | ||
.SRCINFO | ||
po/*.mo | ||
.compdb.json | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
{ | ||
"app-id": "com.vinszent.GnomeTwitch", | ||
"branch": "stable", | ||
|
||
"runtime": "org.gnome.Platform", | ||
"runtime-version": "3.22", | ||
"sdk": "org.gnome.Sdk", | ||
|
||
"command": "gnome-twitch", | ||
|
||
"finish-args": [ | ||
"--share=ipc", | ||
"--socket=x11", | ||
"--socket=wayland", | ||
"--socket=pulseaudio", | ||
"--share=network", | ||
"--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": [ | ||
"*.la", | ||
"*.a", | ||
"/include", | ||
"/lib/pkgconfig", | ||
"/share/pkgconfig", | ||
"/share/aclocal", | ||
"/man", | ||
"/share/bash-completion", | ||
"/share/gtk-doc", | ||
"/share/man" | ||
], | ||
"modules": [ | ||
{ | ||
"name": "ninja", | ||
"cleanup": [ "*" ], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/ninja-build/ninja.git", | ||
"branch": "v1.7.1" | ||
}, | ||
{ | ||
"type": "script", | ||
"dest-filename": "configure", | ||
"commands": [ | ||
"./configure.py --bootstrap" | ||
] | ||
}, | ||
{ | ||
"type": "script", | ||
"dest-filename": "Makefile", | ||
"commands": [ | ||
"all:", | ||
"install:", | ||
"\tinstall -D ninja /app/bin/ninja" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "meson", | ||
"cleanup": [ "*" ], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/mesonbuild/meson.git", | ||
"branch": "0.33.0" | ||
}, | ||
{ | ||
"type": "script", | ||
"dest-filename": "configure", | ||
"commands": [ "" ] | ||
}, | ||
{ | ||
"type": "script", | ||
"dest-filename": "Makefile", | ||
"commands": [ | ||
"all:", | ||
"install:", | ||
"\tpython3 ./setup.py install --prefix=/app/" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "yasm", | ||
"cleanup": [ "*" ], | ||
"sources": [ | ||
{ | ||
"type": "archive", | ||
"url": "http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz", | ||
"sha256": "3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f" | ||
} | ||
] | ||
}, { | ||
"name": "gst-libav", | ||
"cleanup": [ | ||
"/bin/*", | ||
"/lib/peas-demo" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "git://anongit.freedesktop.org/gstreamer/gst-libav", | ||
"branch": "1.8" | ||
} | ||
] | ||
}, { | ||
"name": "libpeas", | ||
"cleanup": [ | ||
"/bin/*", | ||
"/lib/peas-demo" | ||
], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "git://git.gnome.org/libpeas", | ||
"branch": "libpeas-1.18.0" | ||
} | ||
] | ||
}, { | ||
"name": "gnome-twitch", | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/mattiasb/gnome-twitch.git", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wrong URL for merging. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I know. I had a !fixup-commit for that, but I must have dropped it. |
||
"branch": "feature/flatpak" | ||
}, | ||
{ | ||
"type": "script", | ||
"dest-filename": "configure", | ||
"commands": [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not add those as files on the local filesystem instead? I'd create a separate flatpak directory, and put all the files in there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, yeah makes sense. |
||
"mkdir build && cd build", | ||
"meson.py --prefix /app --libdir lib -Ddo-post-install=true -Dwith-player-gstreamer-opengl=true -Dwith-player-backend-gstreamer-cairo=true -Dwith-player-backend-gstreamer-clutter=true -Db_lundef=false", | ||
|
||
"cd ../subprojects/player-backend-gstreamer-opengl", | ||
"mkdir build && cd build", | ||
"meson.py --prefix /app --libdir lib ..", | ||
|
||
"cd ../../player-backend-gstreamer-cairo", | ||
"mkdir build && cd build", | ||
"meson.py --prefix /app --libdir lib ..", | ||
|
||
"cd ../../player-backend-gstreamer-clutter", | ||
"mkdir build && cd build", | ||
"meson.py --prefix /app --libdir lib .." | ||
] | ||
}, | ||
{ | ||
"type": "script", | ||
"dest-filename": "Makefile", | ||
"commands": [ | ||
"all:", | ||
"\tninja -C build/", | ||
"\tninja -C subprojects/player-backend-gstreamer-cairo/build/", | ||
"\tninja -C subprojects/player-backend-gstreamer-clutter/build/", | ||
"\tninja -C subprojects/player-backend-gstreamer-opengl/build/", | ||
|
||
"install:", | ||
"\tninja -C build/ install", | ||
"\tninja -C subprojects/player-backend-gstreamer-cairo/build/ install", | ||
"\tninja -C subprojects/player-backend-gstreamer-clutter/build/ install", | ||
"\tninja -C subprojects/player-backend-gstreamer-opengl/build/ install" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be in a separate package as well. See flatpak/flatpak#123