Browse Source

Merge branch 'dev'

pull/19/head
Denio 5 years ago
parent
commit
19a14225d6
  1. 59
      DEVELOPING.md
  2. 5
      README.md
  3. 38
      build.sh
  4. 39
      linux-static-build.sh
  5. BIN
      res/hushdlogo.gif
  6. BIN
      res/icon.ico
  7. BIN
      res/logobig.gif
  8. BIN
      res/zec_qt_wallet_de.qm
  9. 1468
      res/zec_qt_wallet_de.ts
  10. 850
      res/zec_qt_wallet_es.ts
  11. 916
      res/zec_qt_wallet_fr.ts
  12. 922
      res/zec_qt_wallet_it.ts
  13. 920
      res/zec_qt_wallet_pt.ts
  14. 926
      res/zec_qt_wallet_tr.ts
  15. 920
      res/zec_qt_wallet_zh.ts
  16. 2126
      res/zecwallet-lite.xpm
  17. 2
      src/controller.cpp
  18. 2
      src/version.h
  19. 34
      win-static-build.sh

59
DEVELOPING.md

@ -0,0 +1,59 @@
## Crosscompile for Windows (only tested for Ubuntu 18.04)
```
# build dependencies
sudo apt install clang g++ build-essential make mingw-w64 git pkg-config libc6-dev m4 g++-multilib autoconf libtool-bin ncurses-dev unzip python python-zmq zlib1g-dev wget curl bsdmainutils automake libgl1-mesa-dev libglu1-mesa-dev libfontconfig1-dev autopoint libssl-dev
# MXE dependencies
sudo apt install bash bison bzip2 flex gettext git gperf intltool libc6-dev-i386 libgdk-pixbuf2.0-dev libltdl-dev libtool-bin libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby sed unzip wget xz-utils
```
# Compile OpenSSL
```
# Download openssl 1.0.2
https://www.openssl.org/source/
cd openssl
./Configure linux-x86_64
make
```
## Static build of Qt5
# Download Qt5 sources
```
mkdir -p ~/Qt/5.11.2 && cd ~/Qt/5.11.2
wget https://download.qt.io/archive/qt/5.11/5.11.2/single/qt-everywhere-src-5.11.2.tar.xz
tar xvf qt-everywhere-src-5.11.2.tar.xz && cd qt-everywhere-src-5.11.2
```
# Configure and build Qt5 statically.
```
OPENSSL_LIBS='-L/PATH/TO/openssl-1.0.2q -lssl -lcrypto' ./configure -static -prefix ~/Qt/5.11.2/static -skip qtlocation -skip qtmacextras -skip qtpurchasing -skip qtscript -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtdatavis3d -skip qtdoc -skip qtcharts -skip qtdeclarative -skip qt3d -skip qtwebengine -skip qtandroidextras -skip qtwebview -skip qtgamepad -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtwebview -skip qtwebchannel -skip qtwebglplugin -nomake examples -nomake tests -qt-zlib -qt-libpng -qt-xcb -qt-xkbcommon -feature-fontconfig -no-feature-getentropy -release -openssl-linked -opensource
make -j$(nproc)
make -j$(nproc) install
```
# Build MXE (Cross-compiled Qt5 for Windows in Linux)
```
mkdir ~/github && cd ~/github
git clone https://github.com/mxe/mxe.git
cd mxe
make -j$(nproc) MXE_TARGETS=x86_64-w64-mingw32.static qtbase qtwebsockets
```
# Build SilentDragonLite .exe
```
cd SilentDragonLite
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.38.0 -y
echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
~/.cargo/bin/rustup target add x86_64-pc-windows-gnu
echo "[target.x86_64-pc-windows-gnu]" >> ~/.cargo/config
echo "linker = 'x86_64-w64-mingw32.static-gcc'" >> ~/.cargo/config
./win-static-build.sh
```

5
README.md

@ -28,10 +28,9 @@ Go to the releases page and grab the latest installers or binary. https://github
```
git clone https://github.com/MyHush/SilenDragonLite.git
cd silentdragonlite
/path/to/qt5/bin/qmake silentdragon-lite.pro CONFIG+=debug
make -j$(nproc)
./build.sh
./Silentdragonlite
./silentdragonlite
```

38
build.sh

@ -0,0 +1,38 @@
#!/bin/bash
# Copyright 2019 The Hush Developers
UNAME=$(uname)
if [ "$UNAME" == "Linux" ] ; then
JOBS=$(nproc)
elif [ "$UNAME" == "FreeBSD" ] ; then
JOBS=$(nproc)
elif [ "$UNAME" == "Darwin" ] ; then
JOBS=$(sysctl -n hw.ncpu)
else
JOBS=1
fi
VERSION=$(cat src/version.h |cut -d\" -f2)
echo "Compiling SilentDragonLite $VERSION with $JOBS threads..."
CONF=silentdragon-lite.pro
set -e
qbuild () {
qmake $CONF CONFIG+=debug
#lupdate $CONF
#lrelease $CONF
make -j$JOBS
}
if [ "$1" == "clean" ]; then
make clean
elif [ "$1" == "linguist" ]; then
lupdate $CONF
lrelease $CONF
elif [ "$1" == "cleanbuild" ]; then
make clean
qbuild
else
qbuild
fi

39
linux-static-build.sh

@ -0,0 +1,39 @@
#!/bin/bash
# Copyright 2019 The Hush Developers
UNAME=$(uname)
if [ "$UNAME" == "Linux" ] ; then
JOBS=$(nproc)
elif [ "$UNAME" == "FreeBSD" ] ; then
JOBS=$(nproc)
elif [ "$UNAME" == "Darwin" ] ; then
JOBS=$(sysctl -n hw.ncpu)
else
JOBS=1
fi
VERSION=$(cat src/version.h |cut -d\" -f2)
echo "Compiling SilentDragonLite $VERSION with $JOBS threads..."
CONF=silentdragon-lite.pro
set -e
qbuild () {
/home/$USER/Qt/5.11.2/static/bin/qmake $CONF CONFIG+=debug
#lupdate $CONF
#lrelease $CONF
make -j$JOBS
}
if [ "$1" == "clean" ]; then
make clean
elif [ "$1" == "linguist" ]; then
lupdate $CONF
lrelease $CONF
elif [ "$1" == "cleanbuild" ]; then
make clean
qbuild
else
qbuild
fi

BIN
res/hushdlogo.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 30 KiB

BIN
res/icon.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 401 KiB

BIN
res/logobig.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 18 KiB

BIN
res/zec_qt_wallet_de.qm

Binary file not shown.

1468
res/zec_qt_wallet_de.ts

File diff suppressed because it is too large

850
res/zec_qt_wallet_es.ts

File diff suppressed because it is too large

916
res/zec_qt_wallet_fr.ts

File diff suppressed because it is too large

922
res/zec_qt_wallet_it.ts

File diff suppressed because it is too large

920
res/zec_qt_wallet_pt.ts

File diff suppressed because it is too large

926
res/zec_qt_wallet_tr.ts

File diff suppressed because it is too large

920
res/zec_qt_wallet_zh.ts

File diff suppressed because it is too large

2126
res/zecwallet-lite.xpm

File diff suppressed because it is too large

2
src/controller.cpp

@ -409,7 +409,7 @@ void Controller::refreshTransactions() {
}
txdata.push_back(TransactionItem{
"Sent", datetime, address, txid,confirmations, items
"send", datetime, address, txid,confirmations, items
});
} else {
// Incoming Transaction

2
src/version.h

@ -1 +1 @@
#define APP_VERSION "1.0"
#define APP_VERSION "1.1"

34
win-static-build.sh

@ -0,0 +1,34 @@
#!/bin/bash
# Copyright 2019 The Hush Developers
VERSION=$(cat src/version.h |cut -d\" -f2)
echo "Compiling SilentDragonLite $VERSION .exe with $JOBS threads..."
CONF=silentdragon-lite.pro
set -e
echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
CC_x86_64_pc_windows_gnu="x86_64-w64-mingw32.static-gcc"
PATH="/home/$USER/github/mxe/usr/bin:${PATH}"
mkdir release
cp src/precompiled.h release/
qbuild () {
/home/$USER/github/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 $CONF CONFIG+=release
#lupdate $CONF
#lrelease $CONF
make -j$JOBS
}
if [ "$1" == "clean" ]; then
make clean
elif [ "$1" == "linguist" ]; then
lupdate $CONF
lrelease $CONF
elif [ "$1" == "cleanbuild" ]; then
make clean
qbuild
else
qbuild
fi
Loading…
Cancel
Save