Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfactotum committed May 26, 2019
0 parents commit d6af4f0
Show file tree
Hide file tree
Showing 18 changed files with 54,746 additions and 0 deletions.
675 changes: 675 additions & 0 deletions COPYING

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions build-aux/meson/postinstall.py
@@ -0,0 +1,21 @@
#!/usr/bin/env python3

from os import environ, path
from subprocess import call

prefix = environ.get('MESON_INSTALL_PREFIX', '/usr/local')
datadir = path.join(prefix, 'share')
destdir = environ.get('DESTDIR', '')

# Package managers set this so we don't need to run
if not destdir:
print('Updating icon cache...')
call(['gtk-update-icon-cache', '-qtf', path.join(datadir, 'icons', 'hicolor')])

print('Updating desktop database...')
call(['update-desktop-database', '-q', path.join(datadir, 'applications')])

print('Compiling GSettings schemas...')
call(['glib-compile-schemas', path.join(datadir, 'glib-2.0', 'schemas')])


30 changes: 30 additions & 0 deletions com.github.johnfactotum.Foliate.json
@@ -0,0 +1,30 @@
{
"app-id": "com.github.johnfactotum.Foliate",
"runtime": "org.gnome.Platform",
"runtime-version": "3.32",
"sdk": "org.gnome.Sdk",
"command": "com.github.johnfactotum.Foliate",
"finish-args": [
"--share=network",
"--share=ipc",
"--socket=x11",
"--socket=wayland",
"--filesystem=xdg-run/dconf",
"--filesystem=~/.config/dconf:ro",
"--talk-name=ca.desrt.dconf",
"--env=DCONF_USER_CONFIG_DIR=.config/dconf"
],
"modules": [
{
"name": "foliate",
"builddir": true,
"buildsystem": "meson",
"sources": [
{
"type": "git",
"url": "https://github.com/johnfactotum/foliate"
}
]
}
]
}
8 changes: 8 additions & 0 deletions data/com.github.johnfactotum.Foliate.appdata.xml.in
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>com.github.johnfactotum.Foliate</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<description>
</description>
</component>
11 changes: 11 additions & 0 deletions data/com.github.johnfactotum.Foliate.desktop.in
@@ -0,0 +1,11 @@
[Desktop Entry]
Name=Foliate
GenericName=eBook Viewer
Comment=View eBooks
Categories=Office;Viewer;
MimeType=application/epub+zip;
Exec=com.github.johnfactotum.Foliate %F
Icon=com.github.johnfactotum.Foliate
Terminal=false
Type=Application
Keywords=Ebook;Book;EPUB;Viewer;Reader
45 changes: 45 additions & 0 deletions data/com.github.johnfactotum.Foliate.gschema.xml
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema id="com.github.johnfactotum.Foliate" path="/com/github/johnfactotum/Foliate/">
<key name="font" type="s">
<default>'Sans 12'</default>
<summary>Font</summary>
<description>Font</description>
</key>
<key name="spacing" type="d">
<default>1.5</default>
<summary>Spacing</summary>
<description>Line-height</description>
</key>
<key name="theme" type="s">
<default>'Light'</default>
<summary>Theme</summary>
<description>Color scheme</description>
</key>
<key name="highlight" type="s">
<default>'yellow'</default>
<summary>Default highlight color</summary>
<description>Default highlight color for annotations</description>
</key>
<key name="layout" type="s">
<default>'Paginated'</default>
<summary>Layout</summary>
<description>Page layout</description>
</key>
<key name="window-maximized" type="b">
<default>false</default>
<summary>Maximized</summary>
<description>Whether the window is maximized</description>
</key>
<key name="window-width" type="i">
<default>900</default>
<summary>Window width</summary>
<description>Window width</description>
</key>
<key name="window-height" type="i">
<default>700</default>
<summary>Window height</summary>
<description>Window height</description>
</key>
</schema>
</schemalist>

0 comments on commit d6af4f0

Please sign in to comment.