mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 15:57:34 +00:00
Skipe releases without enclosure
This commit is contained in:
parent
d0fcae5706
commit
1e4f2422e9
3 changed files with 4 additions and 49 deletions
|
@ -205,13 +205,6 @@ f0a5a362 ci: Add ruff including print checks
|
|||
<sparkle:releaseNotesLink>https://github.com/borgbase/vorta/releases/tag/v0.9.0</sparkle:releaseNotesLink>
|
||||
<enclosure url="https://github.com/borgbase/vorta/releases/download/v0.9.0/vorta-0.9.0.dmg" length="45550876" type="application/octet-stream"/>
|
||||
</item>
|
||||
<item>
|
||||
<title>v0.8.12</title>
|
||||
<description><![CDATA[<p>Removes a leftover dependency of <code>paramiko</code>. Rest same as <a href="https://github.com/borgbase/vorta/releases/tag/v0.8.11">v0.8.11</a></p>]]></description>
|
||||
<pubDate>2023-04-10T07:52:39Z</pubDate>
|
||||
<sparkle:version>0.8.12</sparkle:version>
|
||||
<sparkle:releaseNotesLink>https://github.com/borgbase/vorta/releases/tag/v0.8.12</sparkle:releaseNotesLink>
|
||||
</item>
|
||||
<item>
|
||||
<title>v0.8.11</title>
|
||||
<description><![CDATA[<p>This release includes a large number of smaller improvements by our Google Summer of Code contributors and others.</p>
|
||||
|
@ -478,39 +471,6 @@ see previous pre-releases for detailed changes. Main changes:</p>
|
|||
<sparkle:releaseNotesLink>https://github.com/borgbase/vorta/releases/tag/v0.8.2</sparkle:releaseNotesLink>
|
||||
<enclosure url="https://github.com/borgbase/vorta/releases/download/v0.8.2/vorta-0.8.2.dmg" length="45873831" type="application/octet-stream"/>
|
||||
</item>
|
||||
<item>
|
||||
<title>v0.8.1</title>
|
||||
<description><![CDATA[<p>This is the next pre-release of our 0.8 branch, which includes larger under-the-hood improvements. Changes since the last release:</p>
|
||||
<ul>
|
||||
<li>Use native threading module in job_manager. (#1096)</li>
|
||||
<li>Fix next_job timer logic. By @jayeclark (#1100)</li>
|
||||
<li>Remove jobs if scheduler setting is changed. (#1105)</li>
|
||||
<li>Remove jobs before deleting profile (#1107)</li>
|
||||
<li>Make sure correct sources are removed (#1110)</li>
|
||||
<li>Address DB Locking issues (#1109)</li>
|
||||
<li>Refactor: Split up vorta/models.py (#1112)</li>
|
||||
<li>Notify on failed repo checks (#1113)</li>
|
||||
</ul>]]></description>
|
||||
<pubDate>2021-11-17T11:08:47Z</pubDate>
|
||||
<sparkle:version>0.8.1</sparkle:version>
|
||||
<sparkle:releaseNotesLink>https://github.com/borgbase/vorta/releases/tag/v0.8.1</sparkle:releaseNotesLink>
|
||||
</item>
|
||||
<item>
|
||||
<title>v0.8.0</title>
|
||||
<description><![CDATA[<p>This major release improves the way Borg jobs are handled. It also adds support for Python 3.10 and removes our dependency on APScheduler. This is a pre-release and some bugs in this branch aren't addressed yet.</p>
|
||||
<p>Changes in detail:</p>
|
||||
<ul>
|
||||
<li>Implement multiple queues. By @bastiencyr (#1045)</li>
|
||||
<li>Show backup size with excludes applied. By @freder (#961)</li>
|
||||
<li>Remove APScheduler dependency, Python 3.10 support (#1086)</li>
|
||||
<li>Add tooltip containing path name. By @XXXBold (#1072)</li>
|
||||
<li>Increases the maximum allowed number in prune keep. By @lstrz (#1089)</li>
|
||||
<li>Always handle autosave setting when saving SettingsModel. By @phihos (#1093)</li>
|
||||
</ul>]]></description>
|
||||
<pubDate>2021-11-04T10:52:17Z</pubDate>
|
||||
<sparkle:version>0.8.0</sparkle:version>
|
||||
<sparkle:releaseNotesLink>https://github.com/borgbase/vorta/releases/tag/v0.8.0</sparkle:releaseNotesLink>
|
||||
</item>
|
||||
<item>
|
||||
<title>v0.7.8</title>
|
||||
<description><![CDATA[<p>Minor release to update translations and address small bugs. The next release will be 0.8 and will include larger changes:</p>
|
||||
|
|
|
@ -21,13 +21,6 @@
|
|||
<sparkle:releaseNotesLink>https://github.com/borgbase/vorta/releases/tag/v0.9.1</sparkle:releaseNotesLink>
|
||||
<enclosure url="https://github.com/borgbase/vorta/releases/download/v0.9.1/Vorta-0.9.1.dmg" length="44508913" type="application/octet-stream"/>
|
||||
</item>
|
||||
<item>
|
||||
<title>v0.8.12</title>
|
||||
<description><![CDATA[<p>Removes a leftover dependency of <code>paramiko</code>. Rest same as <a href="https://github.com/borgbase/vorta/releases/tag/v0.8.11">v0.8.11</a></p>]]></description>
|
||||
<pubDate>2023-04-10T07:52:39Z</pubDate>
|
||||
<sparkle:version>0.8.12</sparkle:version>
|
||||
<sparkle:releaseNotesLink>https://github.com/borgbase/vorta/releases/tag/v0.8.12</sparkle:releaseNotesLink>
|
||||
</item>
|
||||
<item>
|
||||
<title>v0.8.11</title>
|
||||
<description><![CDATA[<p>This release includes a large number of smaller improvements by our Google Summer of Code contributors and others.</p>
|
||||
|
|
|
@ -43,6 +43,9 @@ def generate_appcast_xml(releases, include_prereleases=False):
|
|||
if not include_prereleases and release['prerelease']:
|
||||
continue # Skip pre-releases if not requested
|
||||
|
||||
if len(release.get("assets", [])) == 0:
|
||||
continue # Skip if there is not enclosure
|
||||
|
||||
item = ET.SubElement(channel, "item")
|
||||
|
||||
item_title = ET.SubElement(item, "title")
|
||||
|
@ -62,8 +65,7 @@ def generate_appcast_xml(releases, include_prereleases=False):
|
|||
|
||||
# Add enclosure for attached assets (assuming one main asset per release)
|
||||
for asset in release.get("assets", []):
|
||||
enclosure = ET.SubElement(item, "enclosure", url=asset['browser_download_url'], length=str(asset['size']), type=asset['content_type'])
|
||||
# enclosure.set(ET.QName(nsmap['sparkle'], 'version'), release['tag_name'][1:])
|
||||
ET.SubElement(item, "enclosure", url=asset['browser_download_url'], length=str(asset['size']), type=asset['content_type'])
|
||||
break # Include only one main file per release, remove break for multiple
|
||||
|
||||
# Convert the XML tree to a nicely formatted string
|
||||
|
|
Loading…
Reference in a new issue