Rename to Zec Wallet (#117)
* Update linux name * Rename strings * Rename debian/linux packages * Rename windows build/installer * Mac rename * Update icon * Update windows icon * update background * Prevent deleting utxos and balances while updating
This commit is contained in:
@@ -4,6 +4,6 @@ Section: base
|
||||
Priority: optional
|
||||
Architecture: amd64
|
||||
Maintainer: Aditya Kulkarni <zcash@adityapk.com>
|
||||
Description: zec-qt-wallet is a full node and UI wallet for Zcash.
|
||||
zec-qt-wallet is a full node and UI wallet for Zcash. It comes with
|
||||
Description: ZecWallet is a full node and UI wallet for Zcash.
|
||||
ZecWallet is a full node and UI wallet for Zcash. It comes with
|
||||
full support for shielded addresses and many apps for Zcash.
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Name=zec-qt-wallet
|
||||
Name=ZecWallet
|
||||
Comment=Full node and wallet for Zcash
|
||||
GenericName=Wallet
|
||||
Exec=/usr/local/bin/zec-qt-wallet
|
||||
Icon=zec-qt-wallet.xpm
|
||||
Exec=/usr/local/bin/zecwallet
|
||||
Icon=zecwallet.xpm
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
StartupWMClass=zecqtwallet
|
||||
StartupWMClass=zecwallet
|
||||
Categories=Utility;
|
||||
MimeType=text/plain;inode/directory;
|
||||
Keywords=zec-qt-wallet;
|
||||
Keywords=zecwallet;
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ export PATH=$PATH:/usr/local/bin
|
||||
#Clean
|
||||
echo -n "Cleaning..............."
|
||||
make distclean >/dev/null 2>&1
|
||||
rm -f artifacts/macOS-zec-qt-wallet-v$APP_VERSION.dmg
|
||||
rm -f artifacts/macOS-zecwallet-v$APP_VERSION.dmg
|
||||
echo "[OK]"
|
||||
|
||||
|
||||
@@ -78,26 +78,27 @@ echo "[OK]"
|
||||
#Qt deploy
|
||||
echo -n "Deploying.............."
|
||||
mkdir artifacts >/dev/null 2>&1
|
||||
rm -f artifcats/zec-qt-wallet.dmg >/dev/null 2>&1
|
||||
rm -f artifcats/zecwallet.dmg >/dev/null 2>&1
|
||||
rm -f artifacts/rw* >/dev/null 2>&1
|
||||
cp $ZCASH_DIR/src/zcashd zec-qt-wallet.app/Contents/MacOS/
|
||||
cp $ZCASH_DIR/src/zcash-cli zec-qt-wallet.app/Contents/MacOS/
|
||||
$QT_PATH/bin/macdeployqt zec-qt-wallet.app
|
||||
cp $ZCASH_DIR/src/zcashd zecwallet.app/Contents/MacOS/
|
||||
cp $ZCASH_DIR/src/zcash-cli zecwallet.app/Contents/MacOS/
|
||||
$QT_PATH/bin/macdeployqt zecwallet.app
|
||||
echo "[OK]"
|
||||
|
||||
|
||||
echo -n "Building dmg..........."
|
||||
create-dmg --volname "zec-qt-wallet-v$APP_VERSION" --volicon "res/logo.icns" --window-pos 200 120 --icon "zec-qt-wallet.app" 200 190 --app-drop-link 600 185 --hide-extension "zec-qt-wallet.app" --window-size 800 400 --hdiutil-quiet --background res/dmgbg.png artifacts/macOS-zec-qt-wallet-v$APP_VERSION.dmg zec-qt-wallet.app >/dev/null 2>&1
|
||||
mv zecwallet.app ZecWallet.app
|
||||
create-dmg --volname "ZecWallet-v$APP_VERSION" --volicon "res/logo.icns" --window-pos 200 120 --icon "ZecWallet.app" 200 190 --app-drop-link 600 185 --hide-extension "ZecWallet.app" --window-size 800 400 --hdiutil-quiet --background res/dmgbg.png artifacts/macOS-zecwallet-v$APP_VERSION.dmg ZecWallet.app >/dev/null 2>&1
|
||||
|
||||
#mkdir bin/dmgbuild >/dev/null 2>&1
|
||||
#sed "s/RELEASE_VERSION/${APP_VERSION}/g" res/appdmg.json > bin/dmgbuild/appdmg.json
|
||||
#cp res/logo.icns bin/dmgbuild/
|
||||
#cp res/dmgbg.png bin/dmgbuild/
|
||||
|
||||
#cp -r zec-qt-wallet.app bin/dmgbuild/
|
||||
#cp -r zecwallet.app bin/dmgbuild/
|
||||
|
||||
#appdmg --quiet bin/dmgbuild/appdmg.json artifacts/macOS-zec-qt-wallet-v$APP_VERSION.dmg >/dev/null
|
||||
if [ ! -f artifacts/macOS-zec-qt-wallet-v$APP_VERSION.dmg ]; then
|
||||
#appdmg --quiet bin/dmgbuild/appdmg.json artifacts/macOS-zecwallet-v$APP_VERSION.dmg >/dev/null
|
||||
if [ ! -f artifacts/macOS-zecwallet-v$APP_VERSION.dmg ]; then
|
||||
echo "[ERROR]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -66,6 +66,7 @@ echo "[OK]"
|
||||
|
||||
echo -n "Building..............."
|
||||
rm -rf bin/zec-qt-wallet* > /dev/null
|
||||
rm -rf bin/zecwallet* > /dev/null
|
||||
make clean > /dev/null
|
||||
make -j$(nproc) > /dev/null
|
||||
echo "[OK]"
|
||||
@@ -73,7 +74,7 @@ echo "[OK]"
|
||||
|
||||
# Test for Qt
|
||||
echo -n "Static link............"
|
||||
if [[ $(ldd zec-qt-wallet | grep -i "Qt") ]]; then
|
||||
if [[ $(ldd zecwallet | grep -i "Qt") ]]; then
|
||||
echo "FOUND QT; ABORT";
|
||||
exit 1
|
||||
fi
|
||||
@@ -81,27 +82,27 @@ echo "[OK]"
|
||||
|
||||
|
||||
echo -n "Packaging.............."
|
||||
mkdir bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||
strip zec-qt-wallet
|
||||
mkdir bin/zecwallet-v$APP_VERSION > /dev/null
|
||||
strip zecwallet
|
||||
|
||||
cp zec-qt-wallet bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||
cp $ZCASH_DIR/artifacts/zcashd bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||
cp $ZCASH_DIR/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 LICENSE bin/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||
cp zecwallet bin/zecwallet-v$APP_VERSION > /dev/null
|
||||
cp $ZCASH_DIR/artifacts/zcashd bin/zecwallet-v$APP_VERSION > /dev/null
|
||||
cp $ZCASH_DIR/artifacts/zcash-cli bin/zecwallet-v$APP_VERSION > /dev/null
|
||||
cp README.md bin/zecwallet-v$APP_VERSION > /dev/null
|
||||
cp LICENSE bin/zecwallet-v$APP_VERSION > /dev/null
|
||||
|
||||
cd bin && tar czf linux-zec-qt-wallet-v$APP_VERSION.tar.gz zec-qt-wallet-v$APP_VERSION/ > /dev/null
|
||||
cd bin && tar czf linux-zecwallet-v$APP_VERSION.tar.gz zecwallet-v$APP_VERSION/ > /dev/null
|
||||
cd ..
|
||||
|
||||
mkdir artifacts >/dev/null 2>&1
|
||||
cp bin/linux-zec-qt-wallet-v$APP_VERSION.tar.gz ./artifacts/linux-binaries-zec-qt-wallet-v$APP_VERSION.tar.gz
|
||||
cp bin/linux-zecwallet-v$APP_VERSION.tar.gz ./artifacts/linux-binaries-zecwallet-v$APP_VERSION.tar.gz
|
||||
echo "[OK]"
|
||||
|
||||
|
||||
if [ -f artifacts/linux-binaries-zec-qt-wallet-v$APP_VERSION.tar.gz ] ; then
|
||||
if [ -f artifacts/linux-binaries-zecwallet-v$APP_VERSION.tar.gz ] ; then
|
||||
echo -n "Package contents......."
|
||||
# Test if the package is built OK
|
||||
if tar tf "artifacts/linux-binaries-zec-qt-wallet-v$APP_VERSION.tar.gz" | wc -l | grep -q "6"; then
|
||||
if tar tf "artifacts/linux-binaries-zecwallet-v$APP_VERSION.tar.gz" | wc -l | grep -q "6"; then
|
||||
echo "[OK]"
|
||||
else
|
||||
echo "[ERROR]"
|
||||
@@ -113,24 +114,24 @@ else
|
||||
fi
|
||||
|
||||
echo -n "Building deb..........."
|
||||
debdir=bin/deb/zec-qt-wallet-v$APP_VERSION
|
||||
debdir=bin/deb/zecwallet-v$APP_VERSION
|
||||
mkdir -p $debdir > /dev/null
|
||||
mkdir $debdir/DEBIAN
|
||||
mkdir -p $debdir/usr/local/bin
|
||||
|
||||
cat src/scripts/control | sed "s/RELEASE_VERSION/$APP_VERSION/g" > $debdir/DEBIAN/control
|
||||
|
||||
cp zec-qt-wallet $debdir/usr/local/bin/
|
||||
cp zecwallet $debdir/usr/local/bin/
|
||||
cp $ZCASH_DIR/artifacts/zcashd $debdir/usr/local/bin/zqw-zcashd
|
||||
|
||||
mkdir -p $debdir/usr/share/pixmaps/
|
||||
cp res/zec-qt-wallet.xpm $debdir/usr/share/pixmaps/
|
||||
cp res/zecwallet.xpm $debdir/usr/share/pixmaps/
|
||||
|
||||
mkdir -p $debdir/usr/share/applications
|
||||
cp src/scripts/desktopentry $debdir/usr/share/applications/zec-qt-wallet.desktop
|
||||
|
||||
dpkg-deb --build $debdir >/dev/null
|
||||
cp $debdir.deb artifacts/linux-deb-zec-qt-wallet-v$APP_VERSION.deb
|
||||
cp $debdir.deb artifacts/linux-deb-zecwallet-v$APP_VERSION.deb
|
||||
echo "[OK]"
|
||||
|
||||
|
||||
@@ -173,22 +174,22 @@ echo "[OK]"
|
||||
|
||||
|
||||
echo -n "Packaging.............."
|
||||
mkdir release/zec-qt-wallet-v$APP_VERSION
|
||||
cp release/zec-qt-wallet.exe release/zec-qt-wallet-v$APP_VERSION
|
||||
cp $ZCASH_DIR/artifacts/zcashd.exe release/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||
cp $ZCASH_DIR/artifacts/zcash-cli.exe release/zec-qt-wallet-v$APP_VERSION > /dev/null
|
||||
cp README.md release/zec-qt-wallet-v$APP_VERSION
|
||||
cp LICENSE release/zec-qt-wallet-v$APP_VERSION
|
||||
cd release && zip -r Windows-binaries-zec-qt-wallet-v$APP_VERSION.zip zec-qt-wallet-v$APP_VERSION/ > /dev/null
|
||||
mkdir release/zecwallet-v$APP_VERSION
|
||||
cp release/zecwallet.exe release/zecwallet-v$APP_VERSION
|
||||
cp $ZCASH_DIR/artifacts/zcashd.exe release/zecwallet-v$APP_VERSION > /dev/null
|
||||
cp $ZCASH_DIR/artifacts/zcash-cli.exe release/zecwallet-v$APP_VERSION > /dev/null
|
||||
cp README.md release/zecwallet-v$APP_VERSION
|
||||
cp LICENSE release/zecwallet-v$APP_VERSION
|
||||
cd release && zip -r Windows-binaries-zecwallet-v$APP_VERSION.zip zecwallet-v$APP_VERSION/ > /dev/null
|
||||
cd ..
|
||||
|
||||
mkdir artifacts >/dev/null 2>&1
|
||||
cp release/Windows-binaries-zec-qt-wallet-v$APP_VERSION.zip ./artifacts/
|
||||
cp release/Windows-binaries-zecwallet-v$APP_VERSION.zip ./artifacts/
|
||||
echo "[OK]"
|
||||
|
||||
if [ -f artifacts/Windows-binaries-zec-qt-wallet-v$APP_VERSION.zip ] ; then
|
||||
if [ -f artifacts/Windows-binaries-zecwallet-v$APP_VERSION.zip ] ; then
|
||||
echo -n "Package contents......."
|
||||
if unzip -l "artifacts/Windows-binaries-zec-qt-wallet-v$APP_VERSION.zip" | wc -l | grep -q "11"; then
|
||||
if unzip -l "artifacts/Windows-binaries-zecwallet-v$APP_VERSION.zip" | wc -l | grep -q "11"; then
|
||||
echo "[OK]"
|
||||
else
|
||||
echo "[ERROR]"
|
||||
|
||||
@@ -2,12 +2,12 @@ param (
|
||||
[Parameter(Mandatory=$true)][string]$version
|
||||
)
|
||||
|
||||
$target="zec-qt-wallet-v$version"
|
||||
$target="zecwallet-v$version"
|
||||
|
||||
Remove-Item -Path release/wininstaller -Recurse -ErrorAction Ignore | Out-Null
|
||||
New-Item release/wininstaller -itemtype directory | Out-Null
|
||||
|
||||
Copy-Item release/$target/zec-qt-wallet.exe release/wininstaller/
|
||||
Copy-Item release/$target/zecwallet.exe release/wininstaller/
|
||||
Copy-Item release/$target/LICENSE release/wininstaller/
|
||||
Copy-Item release/$target/README.md release/wininstaller/
|
||||
Copy-Item release/$target/zcashd.exe release/wininstaller/
|
||||
@@ -20,10 +20,10 @@ if (!$?) {
|
||||
exit 1;
|
||||
}
|
||||
|
||||
light.exe -ext WixUIExtension -cultures:en-us release/wininstaller/zec-qt-wallet.wixobj -out release/wininstaller/zec-qt-wallet.msi
|
||||
light.exe -ext WixUIExtension -cultures:en-us release/wininstaller/zec-qt-wallet.wixobj -out release/wininstaller/zecwallet.msi
|
||||
if (!$?) {
|
||||
exit 1;
|
||||
}
|
||||
|
||||
New-Item artifacts -itemtype directory -Force | Out-Null
|
||||
Copy-Item release/wininstaller/zec-qt-wallet.msi ./artifacts/Windows-installer-$target.msi
|
||||
Copy-Item release/wininstaller/zecwallet.msi ./artifacts/Windows-installer-$target.msi
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Product Id="*" Name="zec-qt-wallet vRELEASE_VERSION" Language="1033" Version="RELEASE_VERSION" Manufacturer="zec-qt-wallet-org" UpgradeCode="fb9bf166-b55f-46b5-a990-9189bdf64533">
|
||||
<Product Id="*" Name="ZecWallet vRELEASE_VERSION" Language="1033" Version="RELEASE_VERSION" Manufacturer="zec-qt-wallet-org" UpgradeCode="fb9bf166-b55f-46b5-a990-9189bdf64533">
|
||||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
|
||||
|
||||
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
|
||||
@@ -55,9 +55,9 @@
|
||||
<Fragment>
|
||||
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
|
||||
<Component Id="ProductComponent" Guid="0D210F5A-53E0-4E7E-CAAD-15A26995505E">
|
||||
<File Source="zec-qt-wallet.exe" KeyPath="yes">
|
||||
<File Source="zecwallet.exe" KeyPath="yes">
|
||||
<Shortcut Id="startMenuShotcut" Advertise="yes" Directory="ApplicationProgramsFolder"
|
||||
Name="zec-qt-wallet" WorkingDirectory="INSTALLFOLDER" Icon="zecqtwalleticon.exe" >
|
||||
Name="ZecWallet" WorkingDirectory="INSTALLFOLDER" Icon="zecqtwalleticon.exe" >
|
||||
</Shortcut>
|
||||
</File>
|
||||
<File Source="LICENSE" />
|
||||
|
||||
Reference in New Issue
Block a user