Skip to content

Commit

Permalink
metainfo: rename apddata with metainfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rirusha committed Sep 15, 2024
1 parent fd453e7 commit 72d76e0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<control>touch</control>
</recommends>
<branding>
<color type="primary" scheme_preference="light">#c0c0c0</color>
<color type="primary" scheme_preference="dark">#303030</color>
<color type="primary" scheme_preference="light">#fee372</color>
<color type="primary" scheme_preference="dark">#dd624b</color>
</branding>
<content_rating type="oars-1.1">
<content_attribute id="sex-themes">mild</content_attribute>
Expand Down
8 changes: 4 additions & 4 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ if desktop_utils.found()
endif

appstream_file = i18n.merge_file(
input: '@0@.appdata.xml.in'.format(app_id),
output: '@0@.appdata.xml'.format(app_id),
input: '@0@.metainfo.xml.in'.format(app_id),
output: '@0@.metainfo.xml'.format(app_id),
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'appdata')
install_dir: join_paths(get_option('datadir'), 'metainfo')
)

appstreamcli = find_program('appstreamcli', required: false)
Expand Down Expand Up @@ -81,4 +81,4 @@ resources = gnome.compile_resources(
c_name: 'cassette'
)

subdir('icons')
subdir('icons')
2 changes: 1 addition & 1 deletion po/POTFILES.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data/io.github.Rirusha.Cassette.appdata.xml.in
data/io.github.Rirusha.Cassette.desktop.in
data/io.github.Rirusha.Cassette-Devel.desktop.in
data/io.github.Rirusha.Cassette.metainfo.xml.in
data/ui/account-info-dialog.blp
data/ui/begin-view.ui
data/ui/cache-deletion-preferences.ui
Expand Down
2 changes: 1 addition & 1 deletion po/update_potfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ find ./data/ui -iname "*.ui" -type f -exec grep -l "translatable" {} + | while r
find ./data/ui -iname "*.blp" -type f -exec grep -lrE '_\(|C_|ngettext' {} + | while read file; do echo "${file#./}" >> ./po/unsort-POTFILES.in; done
find ./src -iname "*.vala" -type f -exec grep -lrE '_\(|C_|ngettext' {} + | while read file; do echo "${file#./}" >> ./po/unsort-POTFILES.in; done
find ./data/ -iname "*.desktop.in" | while read file; do echo "${file#./}" >> ./po/unsort-POTFILES.in; done
find ./data/ -iname "*.appdata.xml.in" | while read file; do echo "${file#./}" >> ./po/unsort-POTFILES.in; done
find ./data/ -iname "*.metainfo.xml.in" | while read file; do echo "${file#./}" >> ./po/unsort-POTFILES.in; done

cat ./po/unsort-POTFILES.in | sort | uniq > ./po/POTFILES.in

Expand Down

0 comments on commit 72d76e0

Please sign in to comment.