-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from AXErunners/development
Release 3.3.8.6
- Loading branch information
Showing
103 changed files
with
14,504 additions
and
1,281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"version": "3.3.8.5", | ||
"version": "3.3.8.6", | ||
"signatures": { | ||
"XuKFPN7RDbrvNsPddPyUPzVqwdhvfB67cx": "H92YPucT5pf94liRc7VHYyIwWfwHkxF5hO1h/3l1HlITULuMukuvu/uJzv5zRL0Sl7edEdV+XiGSqWQrNHrHW5E=" | ||
"7XwiL79Ae8S9qyKbY58aGJRRf334UHwtCW": "H2nkeQcgS4y6TXljC56xYLDDuFPjRsZvxez0BCY+qn0IDxRkTP4HbRgIKNbngJ4OlpAaMcNfvR1OENG0gKZR3z4=" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
#!/bin/bash | ||
|
||
|
||
function read_jks_storepass { | ||
KEYSTORE=~/.jks/keystore | ||
KEYSTORE_ARG="-keystore $KEYSTORE" | ||
KEYTOOL_CMD="keytool -list -storepass:env JKS_STOREPASS $KEYSTORE_ARG" | ||
while [[ -z $JKS_STOREPASS ]]; do | ||
echo -n Input $KEYSTORE keystore password: | ||
read -s JKS_STOREPASS | ||
echo | ||
export JKS_STOREPASS | ||
keytool_res=`$KEYTOOL_CMD` | ||
if [[ $? == 0 ]]; then | ||
break | ||
else | ||
echo Wrong password | ||
export JKS_STOREPASS='' | ||
fi | ||
done | ||
export JKS_KEYPASS=$JKS_STOREPASS | ||
} | ||
|
||
|
||
if [[ ${OSTYPE} == "linux-gnu" ]]; then | ||
echo "Build for Linux/Windows/Android" | ||
elif [[ ${OSTYPE} == "darwin"* ]]; then | ||
echo "Build for macOS" | ||
else | ||
echo "Unknown OS: ${OSTYPE}" | ||
exit 1 | ||
fi | ||
|
||
|
||
source contrib/axe/travis/electrum_axe_version_env.sh | ||
if [[ -n $IS_RELEASE ]]; then | ||
echo electrum-axe version is $AXE_ELECTRUM_VERSION, release build | ||
else | ||
echo electrum-axe version is $AXE_ELECTRUM_VERSION | ||
fi | ||
mkdir -p dist | ||
|
||
BUILD_DIST_DIR=build/electrum-axe/dist | ||
BUILD_BIN_DIR=build/electrum-axe/bin | ||
NAME=Axe-Electrum | ||
TNAME=Axe-Electrum-Testnet | ||
DEB_NAME=electrum-axe | ||
APK_NAME=Electrum_AXE | ||
APK_TNAME=Electrum_AXE_Testnet | ||
UAPK_TAIL=release-unsigned.apk | ||
APK_TAIL=release.apk | ||
|
||
if [[ "$OSTYPE" == "linux-gnu" ]]; then | ||
# Build sdist/AppImage/Windows | ||
sudo rm -rf build | ||
mkdir -p build && cp contrib/axe/travis/* ./build/ | ||
./build/before_install-linux.sh | ||
./build/before_install-linux-apk.sh | ||
./build/travis-build-linux.sh | ||
cp ${BUILD_DIST_DIR}/${NAME}-${AXE_ELECTRUM_VERSION}.tar.gz \ | ||
dist/ | ||
cp ${BUILD_DIST_DIR}/${NAME}-${AXE_ELECTRUM_VERSION}.zip \ | ||
dist/ | ||
cp ${BUILD_DIST_DIR}/${NAME}-${AXE_ELECTRUM_VERSION}-x86_64.AppImage \ | ||
dist/ | ||
cp ${BUILD_DIST_DIR}/${NAME}-${AXE_ELECTRUM_VERSION}-setup-win32.exe \ | ||
dist/ | ||
cp ${BUILD_DIST_DIR}/${NAME}-${AXE_ELECTRUM_VERSION}-setup-win64.exe \ | ||
dist/ | ||
|
||
# Build deb packages | ||
PEP440_PUBVER_PATTERN="^((\d+)!)?" | ||
PEP440_PUBVER_PATTERN=${PEP440_PUBVER_PATTERN}"(([0-9]+)(\.[0-9]+)*)" | ||
PEP440_PUBVER_PATTERN=${PEP440_PUBVER_PATTERN}"([a-zA-Z]+[0-9]+)?" | ||
PEP440_PUBVER_PATTERN=${PEP440_PUBVER_PATTERN}"((\.[a-zA-Z]+[0-9]+)*)$" | ||
if [[ ${AXE_ELECTRUM_VERSION} =~ ${PEP440_PUBVER_PATTERN} ]]; then | ||
if [[ -n ${BASH_REMATCH[1]} ]]; then | ||
DEB_VERSION="${BASH_REMATCH[2]}:" | ||
fi | ||
DEB_VERSION="${DEB_VERSION}${BASH_REMATCH[3]}" | ||
if [[ -n ${BASH_REMATCH[6]} ]]; then | ||
DEB_VERSION="${DEB_VERSION}~${BASH_REMATCH[6]}" | ||
fi | ||
if [[ -n ${BASH_REMATCH[7]} ]]; then | ||
DEB_VERSION="${DEB_VERSION}${BASH_REMATCH[7]}" | ||
fi | ||
DEB_SERIES=("xenial" "bionic" "disco" "eoan") | ||
DEB_SER_VER=("16.04.1" "18.04.1" "19.04.1" "19.10.1") | ||
|
||
pushd build | ||
sudo rm -rf electrum-axe | ||
cp ../dist/${NAME}-${AXE_ELECTRUM_VERSION}.tar.gz \ | ||
${DEB_NAME}_${DEB_VERSION}.orig.tar.gz | ||
tar xzf ${DEB_NAME}_${DEB_VERSION}.orig.tar.gz | ||
pushd ${NAME}-${AXE_ELECTRUM_VERSION} | ||
|
||
for ((i=0;i<${#DEB_SERIES[@]};i++)); do | ||
if [[ -f ~/pbuilder/${DEB_SERIES[i]}-base.tgz ]]; then | ||
PPA_VERSION=${DEB_VERSION}-0ppa1~ubuntu${DEB_SER_VER[i]} | ||
PPA_NAME=${DEB_NAME}_${PPA_VERSION} | ||
DEB_BUILD_DIR=~/pbuilder/${DEB_SERIES[i]}_result | ||
CHANGELOG_FIRST="${DEB_NAME} (${PPA_VERSION})" | ||
CHANGELOG_FIRST="${CHANGELOG_FIRST} ${DEB_SERIES[i]};" | ||
CHANGELOG_FIRST="${CHANGELOG_FIRST} urgency=medium" | ||
sed -i "1s/.*/$CHANGELOG_FIRST/" debian/changelog | ||
echo Building ${PPA_NAME}_all.deb python3-${PPA_NAME}_all.deb | ||
sudo debuild -i -us -uc -S | ||
pbuilder-dist ${DEB_SERIES[i]} ../${PPA_NAME}.dsc | ||
mkdir ../../dist/${DEB_SERIES[i]} | ||
cp ${DEB_BUILD_DIR}/${PPA_NAME}_all.deb \ | ||
../../dist/${DEB_SERIES[i]} | ||
cp ${DEB_BUILD_DIR}/python3-${PPA_NAME}_all.deb \ | ||
../../dist/${DEB_SERIES[i]} | ||
else | ||
echo ~/pbuilder/${DEB_SERIES[i]}-base.tgz not found | ||
echo Skip deb packages build for ${DEB_SERIES[i]} | ||
fi | ||
done | ||
|
||
popd | ||
popd | ||
else | ||
echo Version does not match PEP440 pubversion patter | ||
echo Skip deb packages build | ||
fi | ||
|
||
# Build mainnet release apk | ||
if [[ -n $IS_RELEASE ]]; then | ||
sudo rm -rf build | ||
mkdir -p build && cp contrib/axe/travis/* ./build/ | ||
export ELECTRUM_MAINNET=true | ||
./build/travis-build-linux-apk.sh | ||
cp ${BUILD_BIN_DIR}/${APK_NAME}-$AXE_ELECTRUM_APK_VERSION-$UAPK_TAIL \ | ||
dist/ | ||
fi | ||
|
||
# Build testnet release apk | ||
sudo rm -rf build | ||
mkdir -p build && cp contrib/axe/travis/* ./build/ | ||
export ELECTRUM_MAINNET=false | ||
./build/travis-build-linux-apk.sh | ||
cp ${BUILD_BIN_DIR}/${APK_TNAME}-$AXE_ELECTRUM_APK_VERSION-$UAPK_TAIL \ | ||
dist/ | ||
|
||
sudo rm -rf build | ||
|
||
read_jks_storepass | ||
|
||
# Sign mainnet apk | ||
if [[ -n $IS_RELEASE ]]; then | ||
jarsigner -verbose \ | ||
-tsa http://sha256timestamp.ws.symantec.com/sha256/timestamp \ | ||
-sigalg SHA1withRSA -digestalg SHA1 \ | ||
-sigfile axe-electrum \ | ||
-keystore ~/.jks/keystore \ | ||
-storepass:env JKS_STOREPASS \ | ||
-keypass:env JKS_KEYPASS \ | ||
dist/${APK_NAME}-$AXE_ELECTRUM_APK_VERSION-$UAPK_TAIL \ | ||
axerunners.com | ||
|
||
zipalign -v 4 \ | ||
dist/${APK_NAME}-$AXE_ELECTRUM_APK_VERSION-$UAPK_TAIL \ | ||
dist/${NAME}-$AXE_ELECTRUM_APK_VERSION-$APK_TAIL \ | ||
|
||
rm dist/${APK_NAME}-$AXE_ELECTRUM_APK_VERSION-$UAPK_TAIL | ||
fi | ||
|
||
# Sign testnet apk | ||
jarsigner -verbose \ | ||
-tsa http://sha256timestamp.ws.symantec.com/sha256/timestamp \ | ||
-sigalg SHA1withRSA -digestalg SHA1 \ | ||
-sigfile axe-electrum \ | ||
-keystore ~/.jks/keystore \ | ||
-storepass:env JKS_STOREPASS \ | ||
-keypass:env JKS_KEYPASS \ | ||
dist/${APK_TNAME}-$AXE_ELECTRUM_APK_VERSION-$UAPK_TAIL \ | ||
axerunners.com | ||
|
||
zipalign -v 4 \ | ||
dist/${APK_TNAME}-$AXE_ELECTRUM_APK_VERSION-$UAPK_TAIL \ | ||
dist/${TNAME}-$AXE_ELECTRUM_APK_VERSION-$APK_TAIL \ | ||
|
||
rm dist/${APK_TNAME}-$AXE_ELECTRUM_APK_VERSION-$UAPK_TAIL | ||
else | ||
# Build macOS | ||
sudo rm -rf build | ||
mkdir -p build && cp contrib/axe/travis/* ./build/ | ||
./build/before_install-osx.sh | ||
./build/travis-build-osx.sh | ||
cp ${BUILD_DIST_DIR}/${NAME}-${AXE_ELECTRUM_VERSION}-macosx.dmg \ | ||
dist/ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
if [[ -z $TRAVIS_TAG ]]; then | ||
echo TRAVIS_TAG unset, exiting | ||
exit 1 | ||
if [[ $ELECTRUM_MAINNET == "true" ]] && [[ -z $IS_RELEASE ]]; then | ||
# do not build mainnet apk if is not release | ||
exit 0 | ||
fi | ||
|
||
docker pull zebralucky/electrum-dash-winebuild:Kivy33x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
if [[ -z $TRAVIS_TAG ]]; then | ||
echo TRAVIS_TAG unset, exiting | ||
exit 1 | ||
fi | ||
|
||
docker pull zebralucky/electrum-dash-winebuild:LinuxPy36 | ||
|
||
docker pull zebralucky/electrum-dash-winebuild:LinuxAppImage | ||
|
||
docker pull zebralucky/electrum-dash-winebuild:WinePy36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
#!/bin/bash | ||
set -ev | ||
|
||
if [[ -z $TRAVIS_TAG ]]; then | ||
echo TRAVIS_TAG unset, exiting | ||
exit 1 | ||
if [[ -n $TRAVIS_TAG ]]; then | ||
brew untap homebrew/homebrew-versions | ||
brew update | ||
brew tap zebra-lucky/qt5 | ||
brew install zebra-lucky/qt5/qt | ||
brew install gettext | ||
brew install libusb | ||
|
||
PYTHON_VERSION=3.6.8 | ||
PYFTP=https://www.python.org/ftp/python/$PYTHON_VERSION | ||
PYPKG_NAME=python-$PYTHON_VERSION-macosx10.6.pkg | ||
PY_SHA256=3c5fd87a231eca3ee138b0cdc2be6517a7ca428304d41901a86b51c6a22b910c | ||
echo "$PY_SHA256 $PYPKG_NAME" > $PYPKG_NAME.sha256 | ||
curl -O $PYFTP/$PYPKG_NAME | ||
shasum -a256 -s -c $PYPKG_NAME.sha256 | ||
sudo installer -pkg $PYPKG_NAME -target / | ||
rm $PYPKG_NAME $PYPKG_NAME.sha256 | ||
fi | ||
|
||
cd build | ||
|
||
brew update | ||
brew tap zebra-lucky/qt5 | ||
brew install zebra-lucky/qt5/qt | ||
brew install gettext | ||
brew install libusb | ||
cp /usr/local/Cellar/libusb/1.0.*/lib/libusb-1.0.dylib . | ||
|
||
PYTHON_VERSION=3.6.8 | ||
PYFTP=https://www.python.org/ftp/python/$PYTHON_VERSION | ||
PYPKG_NAME=python-$PYTHON_VERSION-macosx10.6.pkg | ||
PY_SHA256=3c5fd87a231eca3ee138b0cdc2be6517a7ca428304d41901a86b51c6a22b910c | ||
echo "$PY_SHA256 $PYPKG_NAME" > $PYPKG_NAME.sha256 | ||
curl -O $PYFTP/$PYPKG_NAME | ||
shasum -a256 -s -c $PYPKG_NAME.sha256 | ||
sudo installer -pkg $PYPKG_NAME -target / | ||
rm $PYPKG_NAME $PYPKG_NAME.sha256 | ||
|
||
curl -O -L https://github.com/zebra-lucky/secp256k1/releases/download/0.1/libsecp256k1-0.1-osx.tgz | ||
tar -xzf libsecp256k1-0.1-osx.tgz | ||
LSECP256K1_PATH=https://github.com/zebra-lucky/secp256k1/releases/download/0.1 | ||
LSECP256K1_FILE=libsecp256k1-0.1-osx.tgz | ||
curl -O -L ${LSECP256K1_PATH}/${LSECP256K1_FILE} | ||
tar -xzf ${LSECP256K1_FILE} && rm ${LSECP256K1_FILE} | ||
cp libsecp256k1/libsecp256k1.0.dylib . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.