specter update to 1.0.0, tor-only by default (#1921)

This commit is contained in:
openoms 2021-01-10 17:08:58 +00:00 committed by rootzoll
parent 8ab8e9b7f7
commit 13c960c3bd

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# https://github.com/cryptoadvance/specter-desktop # https://github.com/cryptoadvance/specter-desktop
pinnedVersion="0.10.4" pinnedVersion="1.0.0"
# command info # command info
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
@ -110,6 +110,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
/home/admin/config.scripts/network.wallet.sh on /home/admin/config.scripts/network.wallet.sh on
echo "# --> Installing prerequisites" echo "# --> Installing prerequisites"
sudo apt update
sudo apt install -y libusb-1.0.0-dev libudev-dev virtualenv libffi-dev sudo apt install -y libusb-1.0.0-dev libudev-dev virtualenv libffi-dev
sudo adduser --disabled-password --gecos "" specter sudo adduser --disabled-password --gecos "" specter
@ -126,6 +127,13 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
# activating Authentication here ... # activating Authentication here ...
echo "# --> creating App-config" echo "# --> creating App-config"
if [ "${runBehindTor}" = "on" ];then
proxy="socks5h://localhost:9050"
torOnly="true"
else
proxy=""
torOnly="false"
fi
cat > /home/admin/config.json <<EOF cat > /home/admin/config.json <<EOF
{ {
"rpc": { "rpc": {
@ -137,7 +145,24 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
"host": "localhost", "host": "localhost",
"protocol": "http" "protocol": "http"
}, },
"auth":"rpcpasswordaspin" "auth": "rpcpasswordaspin",
"explorers": {
"main": "",
"test": "",
"regtest": "",
"signet": ""
},
"proxy_url": "$proxy",
"only_tor": $torOnly,
"tor_control_port": "",
"hwi_bridge_url": "/hwi/api/",
"uid": "",
"unit": "btc",
"price_check": false,
"alt_rate": 1,
"alt_symbol": "BTC",
"price_provider": "",
"validate_merkle_proofs": false
} }
EOF EOF
sudo mv /home/admin/config.json /home/specter/.specter/config.json sudo mv /home/admin/config.json /home/specter/.specter/config.json