Compare commits

...

7 Commits
master ... dev

  1. 15
      README.md
  2. 31
      contrib/debian/changelog
  3. 3
      contrib/debian/control
  4. 2
      silentdragon-lite.pro
  5. 2
      src/mainwindow.cpp
  6. 3
      src/settings.cpp
  7. 124
      util/build-debian-package.sh

15
README.md

@ -44,7 +44,7 @@ Choose: 1) Proceed with installation (default)
source $HOME/.cargo/env
rustup install 1.49
rustup default 1.49
rustup -V
rustc -V
```
**Nothing below will work without the Linux "build-essential" package. Check that your system has it installed. If not, and you're using a Ubuntu/Debian distro, then you can install with `apt install build-essential`.**
@ -60,6 +60,11 @@ sudo apt-get -y install build-essential qtbase5-dev qt5-qmake qtcreator qttools5
sudo apt-get -y install build-essential qt5-default qt5-qmake qtcreator qttools5-dev-tools
```
##### Debian 11.x:
```shell script
sudo apt-get -y install build-essential qtbase5-dev qt5-qmake qtcreator qttools5-dev-tools
```
Compiling can take some time, so be patient and wait for it to finish. It will take potentially a long time for slower systems. Be Patient and please report compiler problems!
```shell script
@ -105,6 +110,14 @@ Windows 10: `C:\Users\%user\AppData\Roaming\silentdragonlite`
Mac: `~/Library/Application Support/silentdragonlite`
## Where are settings stored?
Linux: `~/.config/Hush/SilentDragonLite.conf`
Windows: `HKEY_CURRENT_USER\SOFTWARE\Hush\SilentDragonLite`
Mac: `~/Library/Preferences/com.hush.SilentDragonLite.plist`
## Support
For support join us on [Telegram Support](https://hush.is/telegram_support), or our [Main Telegram](https://hush.is/telegram), or toot at our [Mastodon](https://fosstodon.org/@myhushteam), or [file an issue](https://git.hush.is/hush/SilentDragonLite/issues).

31
contrib/debian/changelog

@ -1,5 +1,32 @@
silentdragonlite (2.0.2) stable; urgency=low
* Updated checkpoints to 1.710.000 for security & faster new wallet syncing
* Removed a no longer supported lite server.
-- onryo <onryo@hush.land> Mon, 25 Mar 2024 02:50:27 +0200
silentdragonlite (2.0.1) stable; urgency=medium
* 2.0.1.1 release.
* New Notes Automation code that increases the number of unspent outputs to
be able to send multiple transactions at once and hence giving users an
opportunity to send messages in bulk
* Fixed bug found in version 2.0.0 where the incorrect wallettx version of
wallet.dat file gets corrupted, so those users need to restore the wallet
via seed phrase.
* Instant HushChat improvement: Notes automation: #145.
* Instant HushChat improvement: Make notes generate only for HushChat related
transactions: #146.
* Add Sticky Server and Note Automation as GUI checkbox in the settings: #145.
* Added custom Fee: #146.
* Version bug fix: e4658582cb.
* Removed sensitive STDOUT from displaying
* Disabled passphrase length to STDOUT: #147.
* Check libsodium sha256 checksum: #142.
* Allow custom number of cores to compile via build.sh: #137.
* Updated build.sh for better OS compatibility: #138.
* Check for valid QT versions or bail early: 68d9388c1b.
* Fix bug in reporting version being compiled in build.sh: f15a28f3ec.
* Updated checkpoints: 2ababaef70.
* Move connection errror to status Bar: #148.
-- onryo <onryo@hush.land> Sat, 06 Jan 2024 10:20:30 +0200
-- onryo <onryo@hush.land> Sat, 10 Feb 2024 14:37:05 +0200

3
contrib/debian/control

@ -10,4 +10,5 @@ Vcs-Git: https://git.hush.is/hush/SilentDragonLite.git
Package: silentdragonlite
Architecture: amd64 arm64
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: SilentDragonLite is a lightwallet for HUSH which does not require you to download the full blockchain.
Description: Lightwallet (litewallet) for HUSH
This lightwallet does not require you to download the full blockchain.

2
silentdragon-lite.pro

@ -205,7 +205,7 @@ win32: LIBS += -L$$PWD/lib/target/x86_64-pc-windows-gnu/release -lsilentdragonli
else:macx: LIBS += -L$$PWD/lib/target/release -lsilentdragonlite -framework Security -framework Foundation -L$$PWD/res/ -lsodium
else:unix: LIBS += -L$$PWD/lib/target/release -lsilentdragonlite -ldl -L$$PWD/res/ -lsodium
win32: PRE_TARGETDEPS += $$PWD/lib/target/x86_64-pc-windows-gnu/release/silentdragonlite.lib $$PWD/res/liblibsodium.a
win32: PRE_TARGETDEPS += $$PWD/lib/target/x86_64-pc-windows-gnu/release/silentdragonlite.lib $$PWD/res/libsodium.a
else:unix::PRE_TARGETDEPS += $$PWD/lib/target/release/libsilentdragonlite.a $$PWD/res/libsodium.a
INCLUDEPATH += $$PWD/res

2
src/mainwindow.cpp

@ -945,7 +945,7 @@ void MainWindow::doImport(QList<QString>* keys) {
if (key.startsWith("secret")) {
rpc->importZPrivKey(key, [=] (auto) { this->doImport(keys); });
} else if (key.startsWith("U") || key.startsWith("5") || key.startsWith("L") || key.startsWith("K")) {
} else if (key.startsWith("U") || key.startsWith("5") || key.startsWith("L") || key.startsWith("K") || key.startsWith("7")) {
// 5 = uncompressed, len=51
// LK= compressed, len=52
// TODO: verify exact length of (un)compressed

3
src/settings.cpp

@ -242,7 +242,8 @@ void Settings::setCheckForUpdates(bool allow) {
}
bool Settings::getAllowFetchPrices() {
return QSettings().value("options/allowfetchprices", true).toBool();
// now defaults to OFF, used to be ON
return QSettings().value("options/allowfetchprices", false).toBool();
}
void Settings::setAllowFetchPrices(bool allow) {

124
util/build-debian-package.sh

@ -0,0 +1,124 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2024 The Hush developers
# Distributed under the GPLv3 software license, see the accompanying
# file LICENSE or https://www.gnu.org/licenses/gpl-3.0.en.html
#
## USAGE
# ./util/build-debian-package.sh <architecture flag>
#
## Example to build debian pkg for amd64 (most common):
# ./util/build-debian-package.sh --amd64
#
## Example to build debian pkg for ARM (aarch64):
# ./util/build-debian-package.sh --arm
#
## USAGE Requirements:
# - Needs to be run in SDL root directory
# - Needs to be run on a Debian system (NOT UBUNTU)
echo "Let's see who read the USAGE EXAMPLES in this script or not..."
echo ""
# Check if it's already built on system and exit if it is not
if ! [ -x "$(command -v ./SilentDragonLite)" ] || [ -x "$(command -v ./silentdragonlite)" ]; then
echo 'Error: SilentDragonLite is not compiled yet. Follow the instructions in README.md first and try again.' >&2
echo ""
exit 1
fi
# Check if lintian is installed and exit if it is not
if ! [ -x "$(command -v lintian)" ]; then
echo 'Error: lintian is not installed yet. Consult your Linux version package manager...' >&2
echo 'On Debian/Ubuntu, try "sudo apt install lintian"'
echo ""
exit 1
fi
# Check if fakeroot is installed and exit if it is not
if ! [ -x "$(command -v fakeroot)" ]; then
echo 'Error: fakeroot is not installed yet. Consult your Linux version package manager...' >&2
echo 'On Debian/Ubuntu, try "sudo apt install fakeroot"'
echo ""
exit 1
fi
## Command line options section
# Check if there are no CLI options entered and exit if so
if [ -z "$1" ]; then
echo 'YOU DOING IT WRONG...' >&2
echo 'Read the Usage Examples at top of this script & TRY AGAIN' >&2
exit 1
fi
# Architecture CLI option
if [ "$1" = "--amd64" -o "$1" = "--a64" ]; then
ARCH="amd64"
elif [ "$1" = "--arm" -o "$1" = "--ARM" -o "$1" = "--aarch64" ]; then
ARCH="aarch64"
fi
PACKAGE_VERSION=$(grep APP_VERSION src/version.h |cut -d\" -f2)
echo "Let There Be Hush SilentDragonLite Debian Packages!"
echo ""
echo "((_,...,_))"
echo " |o o|"
echo " \ /"
echo " ^_^ cp97"
echo ""
set -e
set -x
BUILD_PATH="/tmp/silentdragonlite-debian-$$"
PACKAGE_NAME="silentdragonlite"
SRC_PATH=`pwd`
SRC_DEB=$SRC_PATH/contrib/debian
SRC_DOC=$SRC_PATH/doc
umask 022
if [ ! -d $BUILD_PATH ]; then
mkdir $BUILD_PATH
fi
DEBVERSION=$(echo $PACKAGE_VERSION)
BUILD_DIR="$BUILD_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-$ARCH"
if [ -d $BUILD_DIR ]; then
rm -R $BUILD_DIR
fi
DEB_BIN=$BUILD_DIR/usr/bin
DEB_CMP=$BUILD_DIR/usr/share/bash-completion/completions
DEB_DOC=$BUILD_DIR/usr/share/doc/$PACKAGE_NAME
DEB_MAN=$BUILD_DIR/usr/share/man/man1
DEB_SHR=$BUILD_DIR/usr/share/hush
mkdir -p $BUILD_DIR/DEBIAN $DEB_CMP $DEB_BIN $DEB_DOC $DEB_MAN $DEB_SHR
chmod 0755 -R $BUILD_DIR/*
# Package maintainer scripts (currently empty)
#cp $SRC_DEB/postinst $BUILD_DIR/DEBIAN
#cp $SRC_DEB/postrm $BUILD_DIR/DEBIAN
#cp $SRC_DEB/preinst $BUILD_DIR/DEBIAN
#cp $SRC_DEB/prerm $BUILD_DIR/DEBIAN
# Copy binary
cp $SRC_PATH/SilentDragonLite $DEB_BIN/silentdragonlite
strip $DEB_BIN/silentdragonlite
cp $SRC_DEB/changelog $DEB_DOC
cp $SRC_DEB/copyright $DEB_DOC
cd $SRC_PATH/contrib
# Create the control file
# had to comment line below to move forward in this build script...
#dpkg-shlibdeps $DEB_BIN/silentdragonlite
dpkg-gencontrol -P$BUILD_DIR -v$DEBVERSION
# Create the Debian package
fakeroot dpkg-deb --build $BUILD_DIR
cp $BUILD_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-$ARCH.deb $SRC_PATH
shasum -a 256 $SRC_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-$ARCH.deb
# Analyze with Lintian, reporting bugs and policy violations
lintian -i $SRC_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-$ARCH.deb
exit 0
Loading…
Cancel
Save