-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.sh
executable file
·63 lines (53 loc) · 1.05 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/sh
# Copyright (C) 2023 Intel Corporation. All rights reserved.
# Licensed under the Apache License 2.0. See LICENSE in the project root for license information.
# SPDX-License-Identifier: Apache-2.0
mkdir -p webinizer-code
cd webinizer-code
echo
echo
echo ">>>>>> Install Emscripten"
if [ -d "emsdk" ]; then
cd emsdk
git pull
cd ..
else
git clone https://github.com/emscripten-core/emsdk.git
fi
# config emsdk
cd emsdk
if [ ! -d "upstream" ]; then
./emsdk install 3.1.31
./emsdk activate 3.1.31
fi
chmod +x emsdk_env.sh
cd ..
echo
echo
echo ">>>>>> Install webinizer Backend"
if [ -d "webinizer" ]; then
cd webinizer
git pull
cd ..
else
git clone https://github.com/intel/webinizer.git webinizer
fi
cd webinizer
npm install
cd ..
echo
echo
echo ">>>>>> Install webinizer UI"
if [ -d "webclient" ]; then
cd webclient
git pull
cd ..
else
git clone https://github.com/intel/webinizer-webclient.git webclient
fi
cd webclient
npm install
cd ..
cd ..
# download demo projects to native_projects folder
./download-demo-projects.sh