mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-08 22:52:18 -04:00
incorporate woodser feedback
This commit is contained in:
parent
a71090dbf5
commit
c11d02a3e4
1 changed files with 59 additions and 61 deletions
|
@ -109,6 +109,7 @@ function remote {
|
||||||
|
|
||||||
## Finalize
|
## Finalize
|
||||||
echo_blue "Haveno TemplateVM installation and configuration complete."
|
echo_blue "Haveno TemplateVM installation and configuration complete."
|
||||||
|
echo_blue "\nHappy Trading\!\n"
|
||||||
printf "%s \n" "Press [ENTER] to complete ..."
|
printf "%s \n" "Press [ENTER] to complete ..."
|
||||||
read ans
|
read ans
|
||||||
#exit
|
#exit
|
||||||
|
@ -122,7 +123,7 @@ function build {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Dependancies
|
# Dependancies
|
||||||
sudo apt install -y make git expect fakeroot
|
sudo apt install -y make git expect fakeroot binutils
|
||||||
|
|
||||||
# Java
|
# Java
|
||||||
curl -fsSLo jdk21.deb ${JAVA_URL}
|
curl -fsSLo jdk21.deb ${JAVA_URL}
|
||||||
|
@ -131,10 +132,11 @@ function build {
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
git clone --depth=1 $SOURCE_URL
|
git clone --depth=1 $SOURCE_URL
|
||||||
cd haveno
|
GIT_DIR=$(awk -F'/' '{ print $NF }' <<< "$SOURCE_URL")
|
||||||
|
cd ${GIT_DIR}
|
||||||
git checkout master
|
git checkout master
|
||||||
sed -i 's|XMR_STAGENET|XMR_MAINNET|g' desktop/package/package.gradle
|
sed -i 's|XMR_STAGENET|XMR_MAINNET|g' desktop/package/package.gradle
|
||||||
./gradlew clean build --refresh-keys --refresh-dependencies
|
./gradlew clean build --refresh-keys --refresh-dependencies
|
||||||
|
|
||||||
# Package
|
# Package
|
||||||
# Expect
|
# Expect
|
||||||
|
@ -154,34 +156,30 @@ send -- "y\r"
|
||||||
expect -exact ""
|
expect -exact ""
|
||||||
send -- "y\r"
|
send -- "y\r"
|
||||||
expect -exact "app-image"
|
expect -exact "app-image"
|
||||||
send -- ""
|
send -- \x03
|
||||||
expect eof
|
expect eof
|
||||||
DONE
|
DONE
|
||||||
|
|
||||||
# Package
|
# Package
|
||||||
expect -f /tmp/haveno_package_deb.exp && find ./ -name '*.deb' -exec qvm-copy {} \;
|
expect -f /tmp/haveno_package_deb.exp && find ./ -name '*.deb' -exec qvm-copy {} \;
|
||||||
|
printf "\nHappy Trading!\n"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ! [[ $# -eq 2 || $# -eq 3 ]] ; then
|
||||||
|
printf "\nFor this script to function, user supplied arguments are required.\n\n"
|
||||||
|
printf "\nPlease review documentation and try again.\n\n"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $# -eq 2 ]] ; then
|
if [[ $# -eq 2 ]] ; then
|
||||||
PRECOMPILED_URL=$1
|
PRECOMPILED_URL=$1
|
||||||
FINGERPRINT=$2
|
FINGERPRINT=$2
|
||||||
|
remote
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $# -eq 3 ]] ; then
|
if [[ $# -eq 3 ]] ; then
|
||||||
JAVA_URL=$1
|
JAVA_URL=$1
|
||||||
JAVA_SHA1=$2
|
JAVA_SHA1=$2
|
||||||
SOURCE_URL=$3
|
SOURCE_URL=$3
|
||||||
|
build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
read -p $'Do you want to:\nInstall precompiled binary from remote git repository? (r)\n\n\t\tOR\n\nBuild source from remote git repository? (b)\n\n' rb
|
|
||||||
|
|
||||||
case $rb in
|
|
||||||
[rR] ) remote;;
|
|
||||||
[bB] ) build;;
|
|
||||||
* ) printf "\nInvalid Input.\n\nPlease Try again.\n";
|
|
||||||
# exit 1;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
printf "\nCheers m8!\n"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue