diff --git a/appveyor.yml b/appveyor.yml index 85d129be04c..517a9471496 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -108,7 +108,8 @@ build_script: - copy /Y Far-NetBox\*.md ci\%configuration%.%platform%\Plugins\NetBox - copy /Y Far-NetBox\LICENSE.txt ci\%configuration%.%platform%\Plugins\NetBox #build FarColorer - - set COLORER_VERSION=1.4.4 + - for /F "delims=" %%a in ('curl -fsLJ "https://raw.githubusercontent.com/colorer/FarColorer/master/version4far.txt"') do set COLORER_VERSION=%%a + - echo "Download FarColorer %COLORER_VERSION%" - set COLORER_PLATFORM=x86 - if "%platform%" == "x64" set COLORER_PLATFORM=x64 - set COLORER_FILE_NAME=FarColorer.%COLORER_PLATFORM%.v%COLORER_VERSION%.7z diff --git a/misc/nightly/colorer.sh b/misc/nightly/colorer.sh index c419f9b7700..df0645c1fc2 100755 --- a/misc/nightly/colorer.sh +++ b/misc/nightly/colorer.sh @@ -3,12 +3,18 @@ function bcolorer { BIT=$1 PLUGIN=FarColorer - COLORER_VERSION=1.4.4 + COLORER_VERSION=$(curl -fsLJ 'https://raw.githubusercontent.com/colorer/FarColorer/master/version4far.txt') + if [ -z "$COLORER_VERSION" ]; then + echo "Failed to get Colorer version" + return 1 + fi + + echo "Download FarColorer ${COLORER_VERSION}" COLORER_PLATFORM=$2 COLORER_FILE_NAME=FarColorer.${COLORER_PLATFORM}.v${COLORER_VERSION}.7z rm -f ${COLORER_FILE_NAME} - curl -fsLJO -o ${COLORER_FILE_NAME} https://github.com/colorer/FarColorer/releases/download/v${COLORER_VERSION}/${COLORER_FILE_NAME} + curl -fsLJO -o ${COLORER_FILE_NAME} 'https://github.com/colorer/FarColorer/releases/download/v${COLORER_VERSION}/${COLORER_FILE_NAME}' if [ ! -e ${COLORER_FILE_NAME} ]; then echo "Can't find ${COLORER_FILE_NAME}" return 1