Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d6af4f0
Showing
18 changed files
with
54,746 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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')]) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
Oops, something went wrong.