...
 
Commits (2)
# Moody #
This software is in alpha: it still has some rough edges.
For example the username setup require restarting the app; I ignore why.
A fast, easy access to your courses
See [CONTRIBUTING.md](/CONTRIBUTING.md) for informations about how it works.
......@@ -11,19 +10,19 @@ See [CONTRIBUTING.md](/CONTRIBUTING.md) for informations about how it works.
For Arch Linux, there is the [epfl-moody-git](https://aur.archlinux.org/packages/epfl-moody-git/) AUR package.
Fedora and Debian packages are planned.
### Flatpak ###
### Flatpak Install ###
(for it to work, you may need to [install flatpak](https://flatpak.org/setup/))
*for it to work, you may need to [install flatpak](https://flatpak.org/setup/)*
You can also install using flatpak, which should work for every Linux distribution
```sh
flatpak-builder --install-deps-from=flatpak --install --user --force-clean _flatbuild ch.gnugen.Moody.json
```
For some reason, you may need to install elfutils `sudo apt install elfutils`
To build, you may need to install elfutils `sudo apt install elfutils`
Flatpak will build libhandy and myhtml from their repository, and use libsoup and libsecret
from the Gnome runtime.
You can also install it system-wide by removing the `--user` flags.
You can also install it system-wide by removing the `--user` flag.
## Build it Yourself ##
......@@ -52,14 +51,11 @@ ninja -C build-dir install
### Cache ###
There is a cache system, but it currently uses the build dir
and must be activated either always or never at compile time
(see `CACHING` in config.h.in). For now, this is a feature used
(and usable) for development purpose only; and it doesn't work
with files, yet.
There is a cache system that works pretty well, reusing every file recent enough.
The only thing keeping it from being perfect is that it can't cache-hit the index,
so it is still worked upon in the dev branch.
## Future Work ##
There is a lot to do: making use of GLib's GTask, loading courses
from cache intelligently, adding the ability to read files inside folders,
read files from cache…
### Folder Handling ###
You can open folders and access files inside it, which is good.
configure_file(
input: 'ch.gnugen.Moody.desktop',
output: 'ch.gnugen.Moody.desktop',
copy: true,
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
install_data('ch.gnugen.Moody.gschema.xml', install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
install_data('ch.gnugen.Moody.appdata.xml', install_dir: join_paths(get_option('datadir'), 'metainfo'))
meson.add_install_script('build_aux/meson_post_install.py')
gnome.compile_schemas(depend_files: 'ch.gnugen.Moody.gresources.xml')
moody_resources = gnome.compile_resources(
'moody-resources',
'ch.gnugen.Moody.gresources.xml',
source_dir : ['ui', 'media'],
c_name: 'hdy',
)
......@@ -4,6 +4,8 @@ project('moody', 'c',
meson_version: '>= 0.47.0',
)
gnome = import('gnome')
root_inc = include_directories('.')
src_inc = include_directories('src')
......@@ -12,6 +14,8 @@ config_h.set_quoted('GETTEXT_PACKAGE', 'moody')
#config_h.set_quoted('CACHE_ROOT', meson.source_root())
config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
subdir('data')
configure_file(
input: 'config.h.in',
output: 'config.h',
......@@ -61,6 +65,8 @@ test_c_args = [
'-Wtype-limits',
'-Wundef',
'-Wunused-function',
#'-fsanitize=address',
#'-fsanitize=undefined',
'-DGDK_DISABLE_DEPRECATED', '-DGTK_DISABLE_DEPRECATED',
]
......@@ -87,8 +93,6 @@ add_project_arguments(
language: 'c',
)
gnome = import('gnome')
summary = [
'',
'------',
......@@ -99,25 +103,6 @@ summary = [
message('\n'.join(summary))
configure_file(
input: 'ch.gnugen.Moody.desktop',
output: 'ch.gnugen.Moody.desktop',
copy: true,
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
install_data('ch.gnugen.Moody.gschema.xml', install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
install_data('ch.gnugen.Moody.appdata.xml', install_dir: join_paths(get_option('datadir'), 'metainfo'))
meson.add_install_script('meson_post_install.py')
gnome.compile_schemas(depend_files: 'ch.gnugen.Moody.gresources.xml')
moody_resources = gnome.compile_resources(
'moody-resources',
'ch.gnugen.Moody.gresources.xml',
source_dir : ['ui', 'media'],
c_name: 'hdy',
)
moody_sources = [
moody_resources,
'src/moody.c',
......