build: use build-locale.sh in all build scripts
This commit is contained in:
@@ -175,14 +175,10 @@ info "generating locale"
|
||||
brew install gettext
|
||||
brew link --force gettext
|
||||
fi
|
||||
cd "$CONTRIB"/deterministic-build/electrum-locale
|
||||
LOCALE="$PROJECT_ROOT/electrum/locale/"
|
||||
# we want the binary to have only compiled (.mo) locale files; not source (.po) files
|
||||
rm -rf "$PROJECT_ROOT/electrum/locale/"
|
||||
for i in ./locale/*; do
|
||||
dir="$PROJECT_ROOT/electrum/$i/LC_MESSAGES"
|
||||
mkdir -p "$dir"
|
||||
msgfmt --output-file="$dir/electrum.mo" "$i/electrum.po" || true
|
||||
done
|
||||
rm -rf "$LOCALE"
|
||||
"$CONTRIB/build_locale.sh" "$CONTRIB/deterministic-build/electrum-locale/locale/" "$LOCALE"
|
||||
) || fail "failed generating locale"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user