From efcdfc2775fa4c93cd6a13b25d36928b0b390545 Mon Sep 17 00:00:00 2001 From: Asher Dawes Date: Tue, 5 Jun 2018 20:46:16 -0700 Subject: [PATCH] Adding upgrade batch file for verus-cli for Windows and updating the README --- kmd/windows/verus-cli/README.txt | 6 ++-- kmd/windows/verus-cli/update-verus-agama.bat | 32 ++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 kmd/windows/verus-cli/update-verus-agama.bat diff --git a/kmd/windows/verus-cli/README.txt b/kmd/windows/verus-cli/README.txt index 88db1c863..c651bb399 100644 --- a/kmd/windows/verus-cli/README.txt +++ b/kmd/windows/verus-cli/README.txt @@ -4,9 +4,11 @@ komodod.exe - VerusCoin's enhanced Komodo daemon komodo-cli.exe - iVerusCoin's Komodo command line utility verus.bat - wrapper for komodo-cli that applies the command to the VRSC coin verusd.bat - wrapper for komodod that sets the VerusCoin parameters to defaults properly +update-verus-agama.bat - script to update an existing VerusCoin enhanced Agama wallet install with this version of komodod. To update run the script and pass the path to the wallet on the command line: update-verus-agama.bat ~/Downloads/Agama-win32-x64 -The first time on a new system you will need to run ./fetchparams.sh before using komodod or verusd. -Many virus scanniong products interfere with the VerusCoin tool's ability to open ports and will need to be configfured to allow what the scanner says is unsafe behavior. Extreme cases can result in the virus scanner deleting Agama.exe or moving it to "protect" the system. You will needs to disable those features and re-extract the verus-cli-windows.zip file if that happens. +The first time on a new system you will need to run ./fetch-params.bat before using komodod.exe or verusd. +Many anti-virus products interfere with the VerusCoin tool's ability to open ports and will need to be configured to allow what the scanner says is unsafe behavior. +Extreme cases can result in the virus scanner deleting Agama.exe or moving it to "protect" the system. You will to add the executables to a whitelist and re-extract the verus-cli-windows.zip file if that happens. Run verusd.bat to launch komodod, and use verus.bat to run commands such as: verus.bat stop Which signals komodod.exe (if it is running) to stop running. diff --git a/kmd/windows/verus-cli/update-verus-agama.bat b/kmd/windows/verus-cli/update-verus-agama.bat new file mode 100644 index 000000000..8dce7c1d7 --- /dev/null +++ b/kmd/windows/verus-cli/update-verus-agama.bat @@ -0,0 +1,32 @@ +@echo off +set AGAMA_DIR=%1 +if defined AGAMA_DIR ( + goto :CHECK_DIR +) else ( + call :GET_AGAMA_DIR + goto :CHECK_DIR +) + +:GET_AGAMA_DIR +set /p AGAMA_DIR="Please enter the path to the Agama directory i.e ~\Users\{USER}\Downloads\Agama-win32-x64 :" +goto :EOF + +:CHECK_DIR +IF NOT EXIST %AGAMA_DIR% ( + ECHO "Directory does not exist. No changes applied. Exiting. + goto :EOF +) else ( + goto :UPGRADE +) +goto :EOF + +:UPGRADE +pushd %~dp0 +set SCRIPT_DIR=%CD% +popd +cd %SCRIPT_DIR% +set TARGET=%AGAMA_DIR%\resources\app\assets\bin\win64\ +xcopy komodo*.exe %TARGET% /b/v/y || echo UPGRADE FAILED && goto :EOF +echo upgrade successful +goto :EOF +