forked from rocicorp/replicache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·33 lines (28 loc) · 993 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·33 lines (28 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ORIG=`pwd`
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT=$DIR/../
REPM_VERSION='v0.11.0'
echo "Fetching test-server..."
(
cd $ROOT
PLATFORM=''
if [ "$(uname)" == "Darwin" ]; then
PLATFORM='osx'
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
PLATFORM='linux'
else
echo "Unsupported platform: $(uname)"
exit
fi
# Repm is an implementation detail of bindings, we do not maintain
# backward compatibility. We need to download the correct version
# this SDK works with.
URL="https://github.com/rocicorp/replicache-client/releases/download/$REPM_VERSION/test-server-amd64-$PLATFORM"
curl -L -f $URL > bin/test-server
chmod u+x bin/test-server
# Diff server is a public interface. We *do* maintain backward compat.
# We download the latest release.
URL="https://github.com/rocicorp/diff-server/releases/latest/download/diffs-$PLATFORM"
curl -L -f $URL > bin/diff-server
chmod u+x bin/diff-server
)