File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ build_script:
108108 - copy /Y Far-NetBox\*.md ci\%configuration%.%platform%\Plugins\NetBox
109109 - copy /Y Far-NetBox\LICENSE.txt ci\%configuration%.%platform%\Plugins\NetBox
110110 # build FarColorer
111- - set COLORER_VERSION=1.4.4
111+ - for /F "delims=" %%a in ('curl -fsLJ "https://raw.githubusercontent.com/colorer/FarColorer/master/version4far.txt"') do set COLORER_VERSION=%%a
112+ - echo "Download FarColorer %COLORER_VERSION%"
112113 - set COLORER_PLATFORM=x86
113114 - if "%platform%" == "x64" set COLORER_PLATFORM=x64
114115 - set COLORER_FILE_NAME=FarColorer.%COLORER_PLATFORM%.v%COLORER_VERSION%.7z
Original file line number Diff line number Diff line change 33function bcolorer {
44 BIT=$1
55 PLUGIN=FarColorer
6- COLORER_VERSION=1.4.4
6+ COLORER_VERSION=$( curl -fsLJ ' https://raw.githubusercontent.com/colorer/FarColorer/master/version4far.txt' )
7+ if [ -z " $COLORER_VERSION " ]; then
8+ echo " Failed to get Colorer version"
9+ return 1
10+ fi
11+
12+ echo " Download FarColorer ${COLORER_VERSION} "
713 COLORER_PLATFORM=$2
814 COLORER_FILE_NAME=FarColorer.${COLORER_PLATFORM} .v${COLORER_VERSION} .7z
915
1016 rm -f ${COLORER_FILE_NAME}
11- curl -fsLJO -o ${COLORER_FILE_NAME} https://github.com/colorer/FarColorer/releases/download/v${COLORER_VERSION} /${COLORER_FILE_NAME}
17+ curl -fsLJO -o ${COLORER_FILE_NAME} ' https://github.com/colorer/FarColorer/releases/download/v${COLORER_VERSION}/${COLORER_FILE_NAME}'
1218 if [ ! -e ${COLORER_FILE_NAME} ]; then
1319 echo " Can't find ${COLORER_FILE_NAME} "
1420 return 1
You can’t perform that action at this time.
0 commit comments