This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
forked from element-hq/riot-android
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build_jisti_libs.sh
executable file
·62 lines (48 loc) · 1.78 KB
/
build_jisti_libs.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
#!/usr/bin/env bash
########
# This script build the Jitsi library with LIBRE_BUILD flag.
# Following instructions from here https://github.com/jitsi/jitsi-meet/tree/master/android#build-and-use-your-own-sdk-artifactsbinaries
# It then export the library in a maven repository, that we host here https://github.com/vector-im/jitsi_libre_maven
# exit on any error
set -e
echo
echo "##################################################"
echo "Cloning jitsi-meet repository"
echo "##################################################"
cd ..
rm -rf jitsi-meet
git clone https://github.com/jitsi/jitsi-meet
# We want a libre build!
export LIBRE_BUILD=true
cd jitsi-meet
# This is commit after version 2.2.2, which does not compile
git checkout 5a934c071a5cbe64de275a25d0ed62d8193cdd03
echo
echo "##################################################"
echo "npm install"
echo "##################################################"
npm install
#make
#echo
#echo "##################################################"
#echo "Build the Android library"
#echo "##################################################"
#
#pushd android
#./gradlew assembleRelease
#popd
#
#echo
#echo "##################################################"
#echo "Bundle with React Native"
#echo "##################################################"
#
#react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output index.android.bundle --assets-dest android/app/src/main/res/
./android/scripts/release-sdk.sh /tmp/jitsi2/
# Also copy jsc
mkdir -p /tmp/jitsi2/org/webkit/
cp -r ./node_modules/jsc-android/dist/org/webkit/android-jsc /tmp/jitsi2/org/webkit/
echo
echo "##################################################"
echo "Release has been done here: /tmp/jitsi2/"
echo "##################################################"