Skip to content

Commit

Permalink
[auto release] The appcast element must be placed at the front, not t…
Browse files Browse the repository at this point in the history
…he back of the list.
  • Loading branch information
christofmuc committed Jul 13, 2023
1 parent da91272 commit a4c690e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion write_appcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def add_release(filename, version, sparkle_signature):
}

# Create a new item
new_item = ET.SubElement(root.find('channel'), 'item')
channel = root.find('channel')
new_item = ET.Element('item')
channel.insert(0, new_item) # insert the new item at the beginning

# Add sub-elements to the new item
ET.SubElement(new_item, 'title').text = new_item_data['title']
Expand Down

0 comments on commit a4c690e

Please sign in to comment.