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
|
||||
echo_blue "Haveno TemplateVM installation and configuration complete."
|
||||
echo_blue "\nHappy Trading\!\n"
|
||||
printf "%s \n" "Press [ENTER] to complete ..."
|
||||
read ans
|
||||
#exit
|
||||
|
@ -122,7 +123,7 @@ function build {
|
|||
exit 1
|
||||
fi
|
||||
# Dependancies
|
||||
sudo apt install -y make git expect fakeroot
|
||||
sudo apt install -y make git expect fakeroot binutils
|
||||
|
||||
# Java
|
||||
curl -fsSLo jdk21.deb ${JAVA_URL}
|
||||
|
@ -131,7 +132,8 @@ function build {
|
|||
|
||||
# Build
|
||||
git clone --depth=1 $SOURCE_URL
|
||||
cd haveno
|
||||
GIT_DIR=$(awk -F'/' '{ print $NF }' <<< "$SOURCE_URL")
|
||||
cd ${GIT_DIR}
|
||||
git checkout master
|
||||
sed -i 's|XMR_STAGENET|XMR_MAINNET|g' desktop/package/package.gradle
|
||||
./gradlew clean build --refresh-keys --refresh-dependencies
|
||||
|
@ -154,34 +156,30 @@ send -- "y\r"
|
|||
expect -exact ""
|
||||
send -- "y\r"
|
||||
expect -exact "app-image"
|
||||
send -- ""
|
||||
send -- \x03
|
||||
expect eof
|
||||
DONE
|
||||
|
||||
# Package
|
||||
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
|
||||
PRECOMPILED_URL=$1
|
||||
FINGERPRINT=$2
|
||||
remote
|
||||
fi
|
||||
|
||||
if [[ $# -eq 3 ]] ; then
|
||||
JAVA_URL=$1
|
||||
JAVA_SHA1=$2
|
||||
SOURCE_URL=$3
|
||||
build
|
||||
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