-
Notifications
You must be signed in to change notification settings - Fork 47
/
setup.sh
executable file
·48 lines (39 loc) · 1.08 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
#!/bin/bash
set -e
yarn=yarnpkg
pushd matrix-js-sdk
$yarn unlink &>/dev/null || true
$yarn link
$yarn install
popd
pushd compound-web
$yarn unlink &>/dev/null || true
$yarn link
$yarn install
popd
pushd element-web
$yarn link matrix-js-sdk
$yarn link @vector-im/compound-web
$yarn install
popd
pushd element-desktop
$yarn install
# Seshat: compare https://github.com/element-hq/element-desktop/blob/develop/docs/native-node-modules.md#adding-seshat-for-search-in-e2e-encrypted-rooms
$yarn add matrix-seshat
#$yarn add electron-build-env
#$yarn run electron-build-env -- --electron "$electron_version" -- neon build matrix-seshat --release
popd
pushd i18n-helper
$yarn install
popd
# CSS overrides
cp res/css/* element-web/res/css/
# Ensure appropriate .gitignore to avoid unnecessary dirty repos
# when re-running setup. merge_upstream.sh will include this into the
# "Automatic setup commit".
if grep -q res/css/sc- element-web/.gitignore; then
echo "Skip updating .gitignore, already looks ok"
else
echo "Updating .gitignore"
echo -e "\nres/css/sc-*.css" >> element-web/.gitignore
fi