SomberNight
4 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
5 changed files with
22 additions and
9 deletions
-
MANIFEST.in
-
contrib/build-linux/appimage/build.sh
-
contrib/build-linux/sdist/make_tgz
-
contrib/build-wine/build-electrum-git.sh
-
contrib/osx/make_osx
|
|
@ -25,3 +25,7 @@ global-exclude *.py[co~] |
|
|
|
global-exclude *.py.orig |
|
|
|
global-exclude *.py.rej |
|
|
|
global-exclude .git |
|
|
|
|
|
|
|
# Maybe we should exclude the compiled locale files? see https://askubuntu.com/a/144139 |
|
|
|
# We include both source (.po) and compiled (.mo) locale files atm (if present). |
|
|
|
# exclude electrum/locale/*/LC_MESSAGES/electrum.mo |
|
|
|
|
|
@ -109,6 +109,8 @@ info "preparing electrum-locale." |
|
|
|
if ! which msgfmt > /dev/null 2>&1; then |
|
|
|
fail "Please install gettext" |
|
|
|
fi |
|
|
|
# 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 |
|
|
|
|
|
@ -16,17 +16,20 @@ fi |
|
|
|
git submodule update --init |
|
|
|
|
|
|
|
( |
|
|
|
rm -rf "$LOCALE" |
|
|
|
cd "$CONTRIB/deterministic-build/electrum-locale/" |
|
|
|
if ! which msgfmt > /dev/null 2>&1; then |
|
|
|
echo "Please install gettext" |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
# We include both source (.po) and compiled (.mo) locale files in the source dist. |
|
|
|
# Maybe we should exclude the compiled locale files? see https://askubuntu.com/a/144139 |
|
|
|
# (also see MANIFEST.in) |
|
|
|
rm -rf "$LOCALE" |
|
|
|
for i in ./locale/*; do |
|
|
|
dir="$ROOT_FOLDER"/electrum/$i/LC_MESSAGES |
|
|
|
mkdir -p $dir |
|
|
|
msgfmt --output-file=$dir/electrum.mo $i/electrum.po || true |
|
|
|
cp $i/electrum.po "$ROOT_FOLDER"/electrum/$i/electrum.po |
|
|
|
dir="$ROOT_FOLDER/electrum/$i/LC_MESSAGES" |
|
|
|
mkdir -p "$dir" |
|
|
|
msgfmt --output-file="$dir/electrum.mo" "$i/electrum.po" || true |
|
|
|
cp $i/electrum.po "$ROOT_FOLDER/electrum/$i/electrum.po" |
|
|
|
done |
|
|
|
) |
|
|
|
|
|
|
|
|
|
@ -22,10 +22,12 @@ pushd ./contrib/deterministic-build/electrum-locale |
|
|
|
if ! which msgfmt > /dev/null 2>&1; then |
|
|
|
fail "Please install gettext" |
|
|
|
fi |
|
|
|
# we want the binary to have only compiled (.mo) locale files; not source (.po) files |
|
|
|
rm -rf "$WINEPREFIX/drive_c/electrum/electrum/locale/" |
|
|
|
for i in ./locale/*; do |
|
|
|
dir=$WINEPREFIX/drive_c/electrum/electrum/$i/LC_MESSAGES |
|
|
|
dir="$WINEPREFIX/drive_c/electrum/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 |
|
|
|
popd |
|
|
|
|
|
|
|
|
|
@ -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" |
|
|
|
|
|
|
|