1
0

build: clarify which locale files are included

related: 2cb4e56be3
This commit is contained in:
SomberNight
2021-03-31 17:00:39 +02:00
parent 815cc5a1d8
commit c23fca37d4
5 changed files with 22 additions and 9 deletions

View File

@@ -105,10 +105,12 @@ info "generating locale"
brew link --force gettext
fi
cd "$CONTRIB"/deterministic-build/electrum-locale
# we want the binary to have only compiled (.mo) locale files; not source (.po) files
rm -rf "$ROOT_FOLDER/electrum/locale/"
for i in ./locale/*; do
dir="$ROOT_FOLDER"/electrum/$i/LC_MESSAGES
dir="$ROOT_FOLDER/electrum/$i/LC_MESSAGES"
mkdir -p $dir
msgfmt --output-file=$dir/electrum.mo $i/electrum.po || true
msgfmt --output-file="$dir/electrum.mo" "$i/electrum.po" || true
done
) || fail "failed generating locale"