Browse Source

Track icons and locale version in submodule

3.2.x
root 7 years ago
committed by Johann Bauer
parent
commit
354c737ce0
  1. 6
      .gitmodules
  2. 27
      contrib/build-osx/make_osx
  3. 36
      contrib/build-wine/build-electrum-git.sh
  4. 1
      contrib/deterministic-build/electrum-icons
  5. 1
      contrib/deterministic-build/electrum-locale

6
.gitmodules

@ -0,0 +1,6 @@
[submodule "contrib/deterministic-build/electrum-icons"]
path = contrib/deterministic-build/electrum-icons
url = https://github.com/spesmilo/electrum-icons
[submodule "contrib/deterministic-build/electrum-locale"]
path = contrib/deterministic-build/electrum-locale
url = https://github.com/spesmilo/electrum-locale

27
contrib/build-osx/make_osx

@ -16,14 +16,14 @@ VERSION=`git describe --tags --dirty`
info "Installing Python $PYTHON_VERSION" info "Installing Python $PYTHON_VERSION"
export PATH="~/.pyenv/bin:~/.pyenv/shims:~/Library/Python/3.6/bin:$PATH" export PATH="~/.pyenv/bin:~/.pyenv/shims:~/Library/Python/3.6/bin:$PATH"
if [ -d "~/.pyenv" ]; then #if [ -d "~/.pyenv" ]; then
pyenv update # pyenv update
else #else
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash > /dev/null 2>&1 # curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash > /dev/null 2>&1
fi #fi
PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install -s $PYTHON_VERSION && \ #PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install -s $PYTHON_VERSION && \
pyenv global $PYTHON_VERSION || \ #pyenv global $PYTHON_VERSION || \
fail "Unable to use Python $PYTHON_VERSION" #fail "Unable to use Python $PYTHON_VERSION"
info "Installing pyinstaller" info "Installing pyinstaller"
@ -37,17 +37,14 @@ pyinstaller --version
rm -rf ./dist rm -rf ./dist
git submodule init
git submodule update
rm -rf $BUILDDIR > /dev/null 2>&1 rm -rf $BUILDDIR > /dev/null 2>&1
mkdir $BUILDDIR mkdir $BUILDDIR
info "Downloading icons and locale..." cp -R ./contrib/deterministic-build/electrum-locale/locale/ ./lib/locale/
for repo in icons locale; do cp ./contrib/deterministic-build/electrum-icons/icons_rc.py ./gui/qt/
git clone $GIT_REPO-$repo $BUILDDIR/electrum-$repo
done
cp -R $BUILDDIR/electrum-locale/locale/ ./lib/locale/
cp $BUILDDIR/electrum-icons/icons_rc.py ./gui/qt/
info "Downloading libusb..." info "Downloading libusb..."

36
contrib/build-wine/build-electrum-git.sh

@ -19,19 +19,22 @@ set -e
mkdir -p tmp mkdir -p tmp
cd tmp cd tmp
for repo in electrum electrum-locale electrum-icons; do if [ -d ./electrum ]; then
if [ -d $repo ]; then rm ./electrum -rf
cd $repo fi
git pull
git checkout master git clone https://github.com/spesmilo/electrum -b master
cd ..
else pushd electrum
URL=https://github.com/spesmilo/$repo.git if [ ! -z "$1" ]; then
git clone -b master $URL $repo git checkout $1
fi fi
done
# Load electrum-icons and electrum-locale for this release
git submodule init
git submodule update
pushd electrum-locale pushd ./contrib/deterministic-build/electrum-locale
for i in ./locale/*; do for i in ./locale/*; do
dir=$i/LC_MESSAGES dir=$i/LC_MESSAGES
mkdir -p $dir mkdir -p $dir
@ -39,11 +42,6 @@ for i in ./locale/*; do
done done
popd popd
pushd electrum
if [ ! -z "$1" ]; then
git checkout $1
fi
VERSION=`git describe --tags --dirty` VERSION=`git describe --tags --dirty`
echo "Last commit: $VERSION" echo "Last commit: $VERSION"
find -exec touch -d '2000-11-11T11:11:11+00:00' {} + find -exec touch -d '2000-11-11T11:11:11+00:00' {} +
@ -52,8 +50,8 @@ popd
rm -rf $WINEPREFIX/drive_c/electrum rm -rf $WINEPREFIX/drive_c/electrum
cp -r electrum $WINEPREFIX/drive_c/electrum cp -r electrum $WINEPREFIX/drive_c/electrum
cp electrum/LICENCE . cp electrum/LICENCE .
cp -r electrum-locale/locale $WINEPREFIX/drive_c/electrum/lib/ cp -r ./electrum/contrib/deterministic-build/electrum-locale/locale $WINEPREFIX/drive_c/electrum/lib/
cp electrum-icons/icons_rc.py $WINEPREFIX/drive_c/electrum/gui/qt/ cp ./electrum/contrib/deterministic-build/electrum-icons/icons_rc.py $WINEPREFIX/drive_c/electrum/gui/qt/
# Install frozen dependencies # Install frozen dependencies
$PYTHON -m pip install -r ../../deterministic-build/requirements.txt $PYTHON -m pip install -r ../../deterministic-build/requirements.txt

1
contrib/deterministic-build/electrum-icons

@ -0,0 +1 @@
Subproject commit a1a986ceed2d4546cf719ebfd9ab3f98df2ce979

1
contrib/deterministic-build/electrum-locale

@ -0,0 +1 @@
Subproject commit c234aa98cce2c255f0c86c22de31e3e9a291987c
Loading…
Cancel
Save