From 890a1e9e1b8b6464cf8625a156e570f2cca544b2 Mon Sep 17 00:00:00 2001 From: Aleksey Dobrunov Date: Sat, 5 Jun 2021 12:44:48 +0500 Subject: [PATCH] get latest version of FarColorer from colorer repo --- appveyor.yml | 3 ++- misc/nightly/colorer.sh | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 85d129be04..517a947149 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 c419f9b770..df0645c1fc 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