mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-25 22:34:28 +01:00
add scrpit for git-bash
This commit is contained in:
parent
23ccf4429e
commit
d30f5b1bef
@ -6,7 +6,6 @@ GREEN='\033[32m'
|
|||||||
DEFAULT='\033[0m'
|
DEFAULT='\033[0m'
|
||||||
|
|
||||||
# GLOBALS
|
# GLOBALS
|
||||||
BINARY_NAME='meilisearch'
|
|
||||||
GREP_SEMVER_REGEXP='v\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)$' # i.e. v[number].[number].[number]
|
GREP_SEMVER_REGEXP='v\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)$' # i.e. v[number].[number].[number]
|
||||||
|
|
||||||
# FUNCTIONS
|
# FUNCTIONS
|
||||||
@ -127,6 +126,9 @@ get_os() {
|
|||||||
'Linux')
|
'Linux')
|
||||||
os='linux'
|
os='linux'
|
||||||
;;
|
;;
|
||||||
|
'MINGW'*)
|
||||||
|
os='windows'
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
return 1
|
return 1
|
||||||
esac
|
esac
|
||||||
@ -180,7 +182,17 @@ if ! get_archi; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Downloading MeiliSearch binary $latest for $os, architecture $archi..."
|
echo "Downloading MeiliSearch binary $latest for $os, architecture $archi..."
|
||||||
release_file="meilisearch-$os-$archi"
|
case "$os" in
|
||||||
|
'windows')
|
||||||
|
release_file="meilisearch-$os-$archi.exe"
|
||||||
|
BINARY_NAME='meilisearch.exe'
|
||||||
|
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
release_file="meilisearch-$os-$archi"
|
||||||
|
BINARY_NAME='meilisearch'
|
||||||
|
|
||||||
|
esac
|
||||||
link="https://github.com/meilisearch/MeiliSearch/releases/download/$latest/$release_file"
|
link="https://github.com/meilisearch/MeiliSearch/releases/download/$latest/$release_file"
|
||||||
curl -OL "$link"
|
curl -OL "$link"
|
||||||
mv "$release_file" "$BINARY_NAME"
|
mv "$release_file" "$BINARY_NAME"
|
||||||
|
Loading…
Reference in New Issue
Block a user