Bug 1443419 - Extract gtk30.mo files from all the Ubuntu langpacks and bundle them into the snap. p=kenvandine r=sfraser

MozReview-Commit-ID: JB2PojGgike

--HG--
extra : rebase_source : 699a98d0564c8f2a73a0e3687eebcc2885632572
This commit is contained in:
Johan Lorenzo 2018-03-07 18:54:54 +01:00
parent 0f1ef06f8d
commit 7a3bc22148
2 changed files with 10 additions and 1 deletions

View File

@ -47,6 +47,13 @@ for locale in $locales; do
"$CANDIDATES_DIR/${VERSION}-candidates/build${BUILD_NUMBER}/linux-x86_64/xpi/${locale}.xpi"
done
# Extract gtk30.mo from Ubuntu language packs
apt download language-pack-gnome-*-base
for i in *.deb; do
# shellcheck disable=SC2086
dpkg-deb --fsys-tarfile $i | tar xv -C "$SOURCE_DEST" --wildcards "./usr/share/locale-langpack/*/LC_MESSAGES/gtk30.mo" || true
done
# Generate snapcraft manifest
sed -e "s/@VERSION@/${VERSION}/g" -e "s/@BUILD_NUMBER@/${BUILD_NUMBER}/g" snapcraft.yaml.in > "${WORKSPACE}/snapcraft.yaml"
cp -v "$SCRIPT_DIRECTORY/mimeapps.list" "$WORKSPACE"

View File

@ -48,8 +48,10 @@ parts:
- libgl1-mesa-glx
- libmirclient9
- desktop-file-utils
- xdg-utils
- ffmpeg
- xdg-utils
- libc-bin
- locales-all
after: [desktop-gtk3]
xdg-open: