Browse Source

Updating agama-upgrade scripts and instructions for their use

pull/181/head
Asher Dawes 6 years ago
parent
commit
b49cc0a157
  1. 2
      doc/man/verus-cli/linux/README.txt
  2. 2
      doc/man/verus-cli/windows/README.txt
  3. 7
      zcutil/upgrade-agama.bat
  4. 4
      zcutil/upgrade-agama.sh

2
doc/man/verus-cli/linux/README.txt

@ -11,3 +11,5 @@ The first time on a new system you will need to run ./fetch-params before using
Run ./verusd to launch komodod, and use verus to run commands such as:
./verus stop
Which signals komodod (if it is running) to stop running.
To upgrade your Verus Enhanced Agama Wallet, run upgrade-agama.sh and enter the directory to your agama app

2
doc/man/verus-cli/windows/README.txt

@ -19,3 +19,5 @@ Which signals komodod.exe (if it is running) to stop running.
Note that if you pass in command line options to verus.bat or verusd.bat that include an = like -ac_veruspos=50 you must surround it with double quotes like this:
verusd.bat "-ac_veruspos=50"
Otherwise Windows will drop the = and pass the two values in as separate command line options.
To upgrade your Verus Enhanced Agama Wallet, run upgrade-agama.bat and enter the directory to your agama app

7
zcutil/upgrade-agama.bat

@ -2,11 +2,12 @@
call :GET_CURRENT_DIR
cd %THIS_DIR%
set /p AGAMA_DIR="Agama directory, followed by [ENTER]:"
cd C:\%UserInputPath%
echo "Removing old binaries"
rm %AGAMA_DIR%/resources/app/assets/bin/win64/verusd/*
rmdir /s %AGAMA_DIR%\resources\app\assets\bin\win64\verusd\verusd
MKDIR %AGAMA_DIR%\resources\app\assets\bin\win64\verusd\verusd
echo "Copying files"
cp ./* %AGAMA_DIR%/resources/app/assets/bin/win64/verusd/
xcopy /E %AGAMA_DIR%\resources\app\assets\bin\win64\verusd
ren %AGAMA_DIR%\resources\app\assets\bin\win64\verusd\komodod.exe %AGAMA_DIR%\resources\app\assets\bin\win64\verusd\verusd.exe
echo "Upgrade complete"
:GET_CURRENT_DIR

4
zcutil/upgrade-agama.sh

@ -7,6 +7,8 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
rm /Applications/Agama.app/Contents/Resources/app/assets/bin/osx/verusd/*
echo "Copying files"
cp ./* /Applications/Agama.app/Contents/Resources/app/assets/bin/osx/verusd/
rm /Applications/Agama.app/Contents/Resources/app/assets/bin/osx/verusd/verusd
mv /Applications/Agama.app/Contents/Resources/app/assets/bin/osx/verusd/komodod /Applications/Agama.app/Contents/Resources/app/assets/bin/osx/verusd/verusd
echo "Upgrade complete"
else
echo "Agama directory, followed by [ENTER]:"
@ -15,5 +17,7 @@ else
rm ${AGAMA_DIR}/resources/app/assets/bin/linux64/verusd/*
echo "Copying files"
cp ./* ${AGAMA_DIR}/resources/app/assets/bin/linux64/verusd/
rm ${AGAMA_DIR}/resources/app/assets/bin/linux64/verusd/verusd
mv ${AGAMA_DIR}/resources/app/assets/bin/linux64/verus/komodod ${AGAMA_DIR}/resources/app/assets/bin/linux64/verusd/verusd
echo "Upgrade complete"
fi

Loading…
Cancel
Save