Support built-in translations in Snap

This commit is contained in:
Jonathan White 2017-12-21 23:25:24 -05:00 committed by Janek Bevendorff
parent a4cf32dce0
commit 6c2ccada13

View File

@ -43,8 +43,11 @@ parts:
- libykpers-1-dev
stage-packages:
- dbus
- qttranslations5-l10n # common translations
install: |
sed -i 's|Icon=keepassxc|Icon=${SNAP}/usr/share/icons/hicolor/256x256/apps/keepassxc.png|g' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.keepassxc.KeePassXC.desktop
organize:
usr/share/qt5/translations/*.qm: usr/share/keepassxc/translations/
after: [desktop-qt5]
# Redefine desktop-qt5 stage packages to work with Ubuntu 17.04