Browse Source
We now distribute two tarballs, a "normal" one (the default, recommended for users), and a new strictly source-only one (for Linux distro packagers). The normal tarball, in addition to including everything from the source-only one, also includes: - compiled (`.mo`) locale files (in addition to source `.po` locale files) - compiled (`_pb2.py`) protobuf files (in addition to source `.proto` files) - the `packages/` folder containing source-only pure-python runtime dependencies merges https://github.com/spesmilo/electrum/pull/7594 with follow-upspatch-4
SomberNight
2 years ago
9 changed files with 111 additions and 36 deletions
@ -0,0 +1,16 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
if [ ! -d "$1" ]; then |
||||
|
echo "usage: $0 path/to/locale" |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
if ! which msgfmt > /dev/null 2>&1; then |
||||
|
echo "Please install gettext" |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
for i in "$1/"*; do |
||||
|
mkdir -p "$i/LC_MESSAGES" |
||||
|
(msgfmt --output-file="$i/LC_MESSAGES/electrum.mo" "$i/electrum.po" || true) |
||||
|
done |
@ -0,0 +1,13 @@ |
|||||
|
#!/bin/bash |
||||
|
# Generates the file paymentrequest_pb2.py |
||||
|
|
||||
|
CONTRIB="$(dirname "$(readlink -e "$0")")" |
||||
|
EL="$CONTRIB"/../electrum |
||||
|
|
||||
|
if ! which protoc > /dev/null 2>&1; then |
||||
|
echo "Please install 'protoc'" |
||||
|
echo "If you're on Debian, try 'sudo apt install protobuf-compiler'?" |
||||
|
exit 1 |
||||
|
fi |
||||
|
|
||||
|
protoc --proto_path="$EL" --python_out="$EL" "$EL"/paymentrequest.proto |
Loading…
Reference in new issue