Skip to content

Commit

Permalink
Split Calibre feed into platform-specific feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
apps.0install.net committed Jul 14, 2022
1 parent 27fd33e commit 6609d02
Show file tree
Hide file tree
Showing 13 changed files with 2,101 additions and 2,005 deletions.
1 change: 1 addition & 0 deletions gui/calibre.watch.py → gui/calibre-linux.watch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#os=Linux
import sys, os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import github
Expand Down
1,002 changes: 1,002 additions & 0 deletions gui/calibre-linux.xml

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions gui/calibre-linux.xml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://zero-install.sourceforge.net/2004/injector/interface http://0install.de/schema/injector/interface/interface.xsd http://0install.de/schema/desktop-integration/capabilities http://0install.de/schema/desktop-integration/capabilities/capabilities.xsd">
<name>Calibre - Linux builds</name>
<summary>organizing, displaying, editing, creating and converting e-books</summary>
<description>Calibre is a cross-platform open-source suite of e-book software. Calibre supports organizing existing e-books into virtual libraries, displaying, editing, creating and converting e-books, as well as syncing e-books with a variety of e-readers.</description>
<homepage>https://calibre-ebook.com/</homepage>
<icon href="https://raw.githubusercontent.com/0install/apps/master/gui/calibre.png" type="image/png"/>

<feed-for interface="https://apps.0install.net/gui/calibre-linux.xml"/>

<group license="GPL v3 (GNU General Public License)">
<command name="run" path="calibre"/>
<command name="edit" path="ebook-edit"/>
<command name="view" path="ebook-viewer"/>
<command name="lrfview" path="lrfviewer"/>

<implementation arch="Linux-x86_64" released="{released}" stability="stable" version="{version}">
<manifest-digest/>
<archive href="https://download.calibre-ebook.com/{version}/calibre-{version}-x86_64.txz" type="application/x-xz-compressed-tar" />
</implementation>
</group>
</interface>
9 changes: 9 additions & 0 deletions gui/calibre-macos.watch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#os=Darwin
import sys, os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import github

releases = [{
'version': release['tag_name'].strip('v'),
'released': release['published_at'][0:10]
} for release in github.releases('kovidgoyal/calibre') if not release['prerelease']]
19 changes: 19 additions & 0 deletions gui/calibre-macos.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" ?>
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface" uri="https://apps.0install.net/gui/calibre-macos.xml">
<name>Calibre - macOS builds</name>
<summary>organizing, displaying, editing, creating and converting e-books</summary>
<description>Calibre is a cross-platform open-source suite of e-book software. Calibre supports organizing existing e-books into virtual libraries, displaying, editing, creating and converting e-books, as well as syncing e-books with a variety of e-readers.</description>
<homepage>https://calibre-ebook.com/</homepage>
<icon href="https://raw.githubusercontent.com/0install/apps/master/gui/calibre.png" type="image/png"/>
<icon href="https://raw.githubusercontent.com/0install/apps/master/gui/calibre.icns" type="image/x-icns"/>

<feed-for interface="https://apps.0install.net/gui/calibre.xml"/>

<group license="GPL v3 (GNU General Public License)">
<command name="run" path="calibre.app/Contents/MacOS/calibre"/>
<command name="edit" path="calibre.app/Contents/MacOS/ebook-edit"/>
<command name="view" path="calibre.app/Contents/MacOS/ebook-viewer"/>
<command name="lrfview" path="calibre.app/Contents/MacOS/lrfviewer"/>

</group>
</interface>
23 changes: 23 additions & 0 deletions gui/calibre-macos.xml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<interface xmlns="http://zero-install.sourceforge.net/2004/injector/interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://zero-install.sourceforge.net/2004/injector/interface http://0install.de/schema/injector/interface/interface.xsd http://0install.de/schema/desktop-integration/capabilities http://0install.de/schema/desktop-integration/capabilities/capabilities.xsd">
<name>Calibre - macOS builds</name>
<summary>organizing, displaying, editing, creating and converting e-books</summary>
<description>Calibre is a cross-platform open-source suite of e-book software. Calibre supports organizing existing e-books into virtual libraries, displaying, editing, creating and converting e-books, as well as syncing e-books with a variety of e-readers.</description>
<homepage>https://calibre-ebook.com/</homepage>
<icon href="https://raw.githubusercontent.com/0install/apps/master/gui/calibre.png" type="image/png"/>
<icon href="https://raw.githubusercontent.com/0install/apps/master/gui/calibre.icns" type="image/x-icns"/>

<feed-for interface="https://apps.0install.net/gui/calibre-macos.xml"/>

<group license="GPL v3 (GNU General Public License)">
<command name="run" path="calibre.app/Contents/MacOS/calibre"/>
<command name="edit" path="calibre.app/Contents/MacOS/ebook-edit"/>
<command name="view" path="calibre.app/Contents/MacOS/ebook-viewer"/>
<command name="lrfview" path="calibre.app/Contents/MacOS/lrfviewer"/>

<implementation arch="MacOSX-*" released="{released}" stability="stable" version="{version}">
<manifest-digest/>
<archive href="https://download.calibre-ebook.com/{version}/calibre-{version}.dmg" type="application/x-xz-compressed-tar" />
</implementation>
</group>
</interface>
9 changes: 9 additions & 0 deletions gui/calibre-windows.watch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#os=Windows
import sys, os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import github

releases = [{
'version': release['tag_name'].strip('v'),
'released': release['published_at'][0:10]
} for release in github.releases('kovidgoyal/calibre') if not release['prerelease']]
Loading

0 comments on commit 6609d02

Please sign in to comment.