Skip to content

Commit

Permalink
generator: Support new non-deprecated developer tag in appstream (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmhewitt authored May 1, 2024
1 parent 379c4eb commit 03962b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion generate-flatpak.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@
summary = component.at_css('summary')
appFile.sub!('((summary))', CGI.escapeHTML(summary.content))

dev_name = component.at_css('developer_name')
new_dev_tag = component.at_css('developer > name')
deprecated_dev_tag = component.at_css('developer_name')
dev_name = new_dev_tag.nil? ? deprecated_dev_tag : new_dev_tag

if not dev_name.nil?
developer = CGI.escapeHTML(dev_name.content)
else
Expand Down

0 comments on commit 03962b2

Please sign in to comment.