-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_bali.sh
executable file
·67 lines (53 loc) · 1.98 KB
/
build_bali.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
64
65
66
#!/usr/bin/env bash
export API_ENDPOINT=https://dev.api.circlesubi.id
export CIRCLES_SUBGRAPH_ENDPOINT=https://api.thegraph.com/subgraphs/name/circlesubi/circles
export PATHFINDER_ENDPOINT=https://rpc.circlesubi.id/pathfinder
export CIRCLES_HUB_ADDRESS=0x29b9a7fBb8995b2423a71cC17cf9810798F6C543
export SAFE_PROXY_FACTORY_ADDRESS=0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2
export SAFE_ADDRESS=0x3E5c63644E683549055b9Be8653de26E0B4CD36E
export RPC_ENDPOINT=https://rpc.circlesubi.id
export OPENLOGIN_CLIENT_ID=BHqazms23gbTZQ2fYvvUaFzv718Ft8Ox1XwSEqVt81jtZJRQRb-N5cnThtZGSjZF9Dtj9MQxkEQTUo47I_wiihE
export HERE_API_KEY=TAyr4mDOyPVD3DUwlUhLgV-hQxIsXGl3wnlyTkTPWsA
export PLACES_API_KEY=AIzaSyDAh2mCO36_qBtbb00QY3IPGKUsunbBj-4
search='__TIMESTAMP__'
replace=`date +"%s"`
search_replace="s/$search/$replace/g"
cp -f ./shell/public/index.template.html ./shell/public/index.html
sed -i.bak "$search_replace" ./shell/public/index.html
rm -f ./shell/public/index.html.bak
echo "Installing build dependencies .."
# npm i WE HAVE TO INSTALL YARN ON THE SERVER THE RIGHT WAY - otherwise it screws everything up ;)
# use sudo npm install -g yarn instead.
# then yarn set version latest
npx --no-install yarn || exit
echo "Building 'o-utils' .."
cd packages/o-utils || exit
npx --no-install tsc || exit
cd .. || exit
echo "Building 'o-events' .."
rm -r -f o-events/dist
cd o-events || exit
npx --no-install tsc || exit
cd .. || exit
echo "Building 'o-interfaces' .."
cd o-interfaces || exit
npx --no-install tsc || exit
cd .. || exit
echo "Building 'o-process' .."
cd o-process || exit
npx --no-install tsc || exit
cd .. || exit
echo "Building 'o-circles' .."
cd o-circles || exit
npx --no-install tsc || exit
cd ../.. || exit
echo "Generating graphql types for shared/api/data"
echo "* api"
cd shell/src/shared/api/data
npx --no-install graphql-codegen --config ./src/shared/api/data/codegen.yml
cd ../../../../..
# npx svelte-check || exit 99
echo "Building 'shell' with dapps .."
cd shell || exit
npm run build
cd .. || exit