diff --git a/justfile b/justfile index a342754..0139ff7 100644 --- a/justfile +++ b/justfile @@ -62,7 +62,7 @@ install: build install -Dm0755 {{desktop-src}} {{desktop-dst}} install -Dm0755 {{metainfo-src}} {{metainfo-dst}} install -Dm0755 {{icon-svg-src}} {{icon-svg-dst}} - cp -r {{po-src}} {{po-dst}} + cp -r {{po-src}}/* {{po-dst}}/ make-makefile target='build-aux/Makefile': echo "# This file was generated by 'just make-makefile'" > {{target}} @@ -103,6 +103,7 @@ add-translation language: msginit -l {{language}}.UTF8 -o po/{{language}}.po -i po/messages.pot build-translations: + rm -r assets/locale cat po/LINGUAS | while read lang; do \ mkdir -p assets/locale/$lang/LC_MESSAGES; \ msgfmt -o assets/locale/$lang/LC_MESSAGES/{{appid}}.mo po/$lang.po; \ diff --git a/makefile b/makefile index 914c7bf..d092d59 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,7 @@ # This file was generated by 'just make-makefile' .PHONY: install install: + rm -r assets/locale cat po/LINGUAS | while read lang; do mkdir -p assets/locale/$$lang/LC_MESSAGES; msgfmt -o assets/locale/$$lang/LC_MESSAGES/de.leopoldluley.Clapgrep.mo po/$$lang.po; done cargo build --package clapgrep-gnome --release mkdir -p /app/share/locale @@ -8,4 +9,4 @@ install: install -Dm0755 assets/de.leopoldluley.Clapgrep.desktop /app/share/applications/de.leopoldluley.Clapgrep.desktop install -Dm0755 assets/de.leopoldluley.Clapgrep.metainfo.xml /app/share/metainfo/de.leopoldluley.Clapgrep.metainfo.xml install -Dm0755 assets/icons/hicolor/scalable/apps/de.leopoldluley.Clapgrep.svg /app/share/icons/hicolor/scalable/apps/de.leopoldluley.Clapgrep.svg - cp -r assets/locale /app/share/locale + cp -r assets/locale/* /app/share/locale/