Bundle zcash-cli in release
This commit is contained in:
@@ -14,11 +14,24 @@ if [ ! -f ../zcash/artifacts/zcashd ]; then
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ ! -f ../zcash/artifacts/zcash-cli ]; then
|
||||||
|
echo "Couldn't find zcash-cli in ../zcash/artifacts/. Please build zcashd."
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ ! -f ../zcash/artifacts/zcashd.exe ]; then
|
if [ ! -f ../zcash/artifacts/zcashd.exe ]; then
|
||||||
echo "Couldn't find zcashd.exe in ../zcash/artifacts/. Please build zcashd.exe"
|
echo "Couldn't find zcashd.exe in ../zcash/artifacts/. Please build zcashd.exe"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ ! -f ../zcash/artifacts/zcash-cli.exe ]; then
|
||||||
|
echo "Couldn't find zcash-cli.exe in ../zcash/artifacts/. Please build zcashd.exe"
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
echo -n "Version files....."
|
echo -n "Version files....."
|
||||||
# Replace the version number in the .pro file so it gets picked up everywhere
|
# Replace the version number in the .pro file so it gets picked up everywhere
|
||||||
sed -i "s/${PREV_VERSION}/${APP_VERSION}/g" zec-qt-wallet.pro > /dev/null
|
sed -i "s/${PREV_VERSION}/${APP_VERSION}/g" zec-qt-wallet.pro > /dev/null
|
||||||
@@ -62,6 +75,7 @@ mkdir bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
|||||||
strip zec-qt-wallet
|
strip zec-qt-wallet
|
||||||
cp zec-qt-wallet bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
cp zec-qt-wallet bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||||
cp ../zcash/artifacts/zcashd bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
cp ../zcash/artifacts/zcashd bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||||
|
cp ../zcash/artifacts/zcash-cli bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||||
cp README.md bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
cp README.md bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||||
cp LICENSE bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
cp LICENSE bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||||
cd bin && tar cvf linux-zec-qt-wallet-v$APP_VERSION.tar.gz zec-qt-wallet-v$APP_VERSION/ > /dev/null
|
cd bin && tar cvf linux-zec-qt-wallet-v$APP_VERSION.tar.gz zec-qt-wallet-v$APP_VERSION/ > /dev/null
|
||||||
@@ -74,9 +88,10 @@ echo "[OK]"
|
|||||||
if [ -f artifacts/linux-zec-qt-wallet-v$APP_VERSION.tar.gz ] ; then
|
if [ -f artifacts/linux-zec-qt-wallet-v$APP_VERSION.tar.gz ] ; then
|
||||||
echo -n "Package contents.."
|
echo -n "Package contents.."
|
||||||
# Test if the package is built OK
|
# Test if the package is built OK
|
||||||
if tar tf "artifacts/linux-zec-qt-wallet-v$APP_VERSION.tar.gz" | wc -l | grep -q "5"; then
|
if tar tf "artifacts/linux-zec-qt-wallet-v$APP_VERSION.tar.gz" | wc -l | grep -q "6"; then
|
||||||
echo "[OK]"
|
echo "[OK]"
|
||||||
else
|
else
|
||||||
|
echo "[ERROR]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@@ -107,6 +122,7 @@ echo -n "Packaging........."
|
|||||||
mkdir release/zec-qt-wallet-v$APP_VERSION
|
mkdir release/zec-qt-wallet-v$APP_VERSION
|
||||||
cp release/zec-qt-wallet.exe release/zec-qt-wallet-v$APP_VERSION
|
cp release/zec-qt-wallet.exe release/zec-qt-wallet-v$APP_VERSION
|
||||||
cp ../zcash/artifacts/zcashd.exe release/zec-qt-wallet-v$APP_VERSION > /dev/null
|
cp ../zcash/artifacts/zcashd.exe release/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||||
|
cp ../zcash/artifacts/zcash-cli.exe release/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||||
cp README.md release/zec-qt-wallet-v$APP_VERSION
|
cp README.md release/zec-qt-wallet-v$APP_VERSION
|
||||||
cp LICENSE release/zec-qt-wallet-v$APP_VERSION
|
cp LICENSE release/zec-qt-wallet-v$APP_VERSION
|
||||||
cd release && zip -r Windows-zec-qt-wallet-v$APP_VERSION.zip zec-qt-wallet-v$APP_VERSION/ > /dev/null
|
cd release && zip -r Windows-zec-qt-wallet-v$APP_VERSION.zip zec-qt-wallet-v$APP_VERSION/ > /dev/null
|
||||||
@@ -117,7 +133,7 @@ echo "[OK]"
|
|||||||
|
|
||||||
if [ -f artifacts/Windows-zec-qt-wallet-v$APP_VERSION.zip ] ; then
|
if [ -f artifacts/Windows-zec-qt-wallet-v$APP_VERSION.zip ] ; then
|
||||||
echo -n "Package contents.."
|
echo -n "Package contents.."
|
||||||
if unzip -l "artifacts/Windows-zec-qt-wallet-v$APP_VERSION.zip" | wc -l | grep -q "10"; then
|
if unzip -l "artifacts/Windows-zec-qt-wallet-v$APP_VERSION.zip" | wc -l | grep -q "11"; then
|
||||||
echo "[OK]"
|
echo "[OK]"
|
||||||
else
|
else
|
||||||
echo "[ERROR]"
|
echo "[ERROR]"
|
||||||
|
|||||||
Reference in New Issue
Block a user