mirror of
https://github.com/proletarius101/com.bitwarden.desktop.git
synced 2024-10-22 20:51:50 +02:00
Merge pull request #130 from proletarius101/enable-separate-locales
allow separate locale
This commit is contained in:
commit
c459629cfc
|
@ -5,7 +5,6 @@ sdk: org.freedesktop.Sdk
|
||||||
base: org.electronjs.Electron2.BaseApp
|
base: org.electronjs.Electron2.BaseApp
|
||||||
base-version: '22.08'
|
base-version: '22.08'
|
||||||
command: bitwarden
|
command: bitwarden
|
||||||
separate-locales: false
|
|
||||||
finish-args:
|
finish-args:
|
||||||
- --share=ipc
|
- --share=ipc
|
||||||
- --share=network
|
- --share=network
|
||||||
|
@ -36,6 +35,16 @@ modules:
|
||||||
- install -D -m 644 -t $FLATPAK_DEST/share/metainfo $FLATPAK_ID.metainfo.xml
|
- install -D -m 644 -t $FLATPAK_DEST/share/metainfo $FLATPAK_ID.metainfo.xml
|
||||||
- desktop-file-edit --set-key=Exec --set-value="bitwarden %U" $FLATPAK_DEST/share/applications/bitwarden.desktop
|
- desktop-file-edit --set-key=Exec --set-value="bitwarden %U" $FLATPAK_DEST/share/applications/bitwarden.desktop
|
||||||
- rm -rf "${FLATPAK_DEST}/share/icons/hicolor/1024x1024/"
|
- rm -rf "${FLATPAK_DEST}/share/icons/hicolor/1024x1024/"
|
||||||
|
|
||||||
|
# To allow separate locales
|
||||||
|
# https://searchfox.org/mozilla-central/rev/8a4f55bc09ffc5c25dcb4586c51ae4a9fee77b4c/taskcluster/docker/firefox-flatpak/runme.sh#131-133
|
||||||
|
- |
|
||||||
|
for lang in ${FLATPAK_DEST}/Bitwarden/locales/*.pak
|
||||||
|
do
|
||||||
|
locale="$(basename -s .pak $lang)"
|
||||||
|
install -Dm644 -t "${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/" "$lang"
|
||||||
|
ln -sf "${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/$(basename $lang)" "${FLATPAK_DEST}/Bitwarden/locales/$(basename $lang)"
|
||||||
|
done
|
||||||
sources:
|
sources:
|
||||||
- type: file
|
- type: file
|
||||||
only-arches:
|
only-arches:
|
||||||
|
|
Loading…
Reference in a new issue