mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
Track icons and locale version in submodule
This commit is contained in:
parent
a94e1d92a3
commit
354c737ce0
5 changed files with 37 additions and 34 deletions
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
|
@ -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
|
|
@ -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..."
|
||||||
|
|
|
@ -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
|
|
||||||
cd ..
|
|
||||||
else
|
|
||||||
URL=https://github.com/spesmilo/$repo.git
|
|
||||||
git clone -b master $URL $repo
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
pushd electrum-locale
|
git clone https://github.com/spesmilo/electrum -b master
|
||||||
|
|
||||||
|
pushd electrum
|
||||||
|
if [ ! -z "$1" ]; then
|
||||||
|
git checkout $1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Load electrum-icons and electrum-locale for this release
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
|
||||||
|
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
Submodule
1
contrib/deterministic-build/electrum-icons
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a1a986ceed2d4546cf719ebfd9ab3f98df2ce979
|
1
contrib/deterministic-build/electrum-locale
Submodule
1
contrib/deterministic-build/electrum-locale
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit c234aa98cce2c255f0c86c22de31e3e9a291987c
|
Loading…
Add table
Reference in a new issue