-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·63 lines (47 loc) · 1.73 KB
/
setup.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash -e
readonly BROTLI_REV="4fc753e707c141328ee707bc2df23603391d0102"
rm -rf third_party
mkdir third_party
cd third_party
# Download brotli
git clone https://github.com/google/brotli.git
cd brotli
git checkout $BROTLI_REV
bazel build brotli
cd research/
bazel build dictionary_generator
cd ../../
mkdir three_js
cd three_js
curl https://unpkg.com/[email protected]/build/three.module.js -o 151.js
curl https://unpkg.com/[email protected]/build/three.module.js -o 152.js
curl https://unpkg.com/[email protected]/build/three.module.js -o 153.js
../brotli/bazel-bin/brotli 151.js -o 151.js.br
../brotli/bazel-bin/brotli 152.js -o 152.js.br
../brotli/bazel-bin/brotli 153.js -o 153.js.br
../brotli/bazel-bin/brotli 151.js -D 151.js -o 151-151.js.sbr
../brotli/bazel-bin/brotli 152.js -D 151.js -o 151-152.js.sbr
../brotli/bazel-bin/brotli 153.js -D 151.js -o 151-153.js.sbr
../brotli/bazel-bin/brotli 151.js -D 152.js -o 152-151.js.sbr
../brotli/bazel-bin/brotli 152.js -D 152.js -o 152-152.js.sbr
../brotli/bazel-bin/brotli 153.js -D 152.js -o 152-153.js.sbr
../brotli/bazel-bin/brotli 151.js -D 153.js -o 153-151.js.sbr
../brotli/bazel-bin/brotli 152.js -D 153.js -o 153-152.js.sbr
../brotli/bazel-bin/brotli 153.js -D 153.js -o 153-153.js.sbr
zstd 152.js -D 151.js -19 -o 151-152.js.szst
zstd 153.js -D 151.js -19 -o 151-153.js.szst
zstd 151.js -D 152.js -19 -o 152-151.js.szst
zstd 153.js -D 152.js -19 -o 152-153.js.szst
zstd 151.js -D 153.js -19 -o 153-151.js.szst
zstd 152.js -D 153.js -19 -o 153-152.js.szst
cp 151.js 151.js_
cp 152.js 152.js_
cp 153.js 153.js_
zstd 151.js -D 151.js_ -19 -o 151-151.js.szst
zstd 152.js -D 152.js_ -19 -o 152-152.js.szst
zstd 153.js -D 153.js_ -19 -o 153-153.js.szst
rm 151.js_
rm 152.js_
rm 153.js_
npm install
npm start run