Skip to content

Commit

Permalink
get latest version of FarColorer from colorer repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex authored and alabuzhev committed Jun 5, 2021
1 parent 1f9cfab commit 890a1e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions misc/nightly/colorer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 890a1e9

Please sign in to comment.