1
1
mirror of https://github.com/codota/TabNine.git synced 2024-09-11 09:55:23 +03:00
TabNine/dl_binaries.sh

26 lines
699 B
Bash
Raw Permalink Normal View History

2018-11-06 23:50:19 +03:00
#!/bin/sh
set -e
# This script downloads the binaries for the most recent version of TabNine.
2020-11-26 11:26:32 +03:00
version="$(curl -sS https://update.tabnine.com/bundles/version)"
targets='i686-pc-windows-gnu
i686-unknown-linux-musl
2018-11-06 23:50:19 +03:00
x86_64-apple-darwin
aarch64-apple-darwin
2018-11-06 23:50:19 +03:00
x86_64-pc-windows-gnu
2020-11-26 11:26:32 +03:00
x86_64-unknown-linux-musl'
rm -rf ./binaries
echo "$targets" | while read target
2018-11-06 23:50:19 +03:00
do
mkdir -p binaries/$version/$target
2020-11-26 11:26:32 +03:00
path=$version/$target
2018-11-06 23:50:19 +03:00
echo "downloading $path"
2020-11-26 11:26:32 +03:00
curl -sS https://update.tabnine.com/bundles/$path/TabNine.zip > binaries/$path/TabNine.zip
unzip -o binaries/$path/TabNine.zip -d binaries/$path
rm binaries/$path/TabNine.zip
chmod +x binaries/$path/*
2018-11-06 23:50:19 +03:00
done