-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·30 lines (20 loc) · 991 Bytes
/
build.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
set e
rm -fr lib/roaring-tencent
rm -fr lib/roaring-tencent/lib
mkdir -p docker-build
#docker run -v $PWD/docker-build:/var/task iopipe/awslambda-npm-install --unsafe-perm --build-from-source
docker run -v $PWD/docker-build:/var/task zephyrinzephyr/centos7-npm-install --unsafe-perm --build-from-source
echo 'npm install OK.'
mkdir -p lib/roaring-tencent
mkdir -p lib/roaring-tencent/lib
cp $PWD/docker-build/node_modules/roaring/package.json $PWD/lib/roaring-tencent/package.json
cp $PWD/docker-build/node_modules/roaring/*.js $PWD/lib/roaring-tencent/
cp $PWD/docker-build/node_modules/roaring/*.ts $PWD/lib/roaring-tencent/
cp $PWD/docker-build/node_modules/roaring/lib/*.js $PWD/lib/roaring-tencent/lib/
mkdir -p lib/roaring-tencent/build
mkdir -p lib/roaring-tencent/build/Release
cp $PWD/docker-build/node_modules/roaring/build/Release/*.node $PWD/lib/roaring-tencent/build/Release
node $PWD/docker-build/clean-package-json.js
echo ''
echo '* OK - all files copied.'
echo ''