-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-chrome.sh
executable file
·36 lines (36 loc) · 1.46 KB
/
build-chrome.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
#!/bin/bash
cd ./node-browserify
git pull
cd ../
mkdir -p chrome/tmp/
mkdir -p build/chrome/
cp deps/otr4-em/lib/*.js chrome/tmp/
cp deps/enet/lib/enet.js chrome/tmp/
cp deps/telehash/lib/v1/*.js chrome/tmp/
cp chrome/src/dgram-chrome.js chrome/tmp/
cp chrome/src/net-chrome.js chrome/tmp/
cp chrome/src/exports.js chrome/tmp/
cp chrome/src/os-chrome.js chrome/tmp/os.js
cp chrome/src/ws.js chrome/tmp/ws.js
node node-browserify/bin/cmd.js chrome/tmp/exports.js \
-r ./chrome/tmp/ws.js:ws \
-r ./chrome/tmp/dgram-chrome.js:dgram \
-r ./chrome/tmp/net-chrome.js:net \
-r ./chrome/tmp/enet.js:enet \
-r ./chrome/tmp/async.js:async \
-r ./chrome/tmp/bigint.js:bigint.js \
-r ./chrome/tmp/libotr4.js:libotr4.js \
-r ./chrome/tmp/libotr-js-bindings.js:libotr-js-bindings.js \
-r ./chrome/tmp/otr-module.js:otr \
-r ./chrome/tmp/os.js:os \
-r ./chrome/tmp/iputil.js:iputil \
-r ./chrome/tmp/udplib.js:udplib \
-r ./chrome/tmp/hash.js:hash \
-r ./chrome/tmp/switch.js:switch \
-r ./chrome/tmp/telehash:telehash \
-o ./build/chrome/teo-chrome.js
cp chrome/src/window.html build/chrome/
cp chrome/src/icon.png build/chrome/
cp chrome/src/manifest.json build/chrome/
cp chrome/src/background.js build/chrome/
cp chrome/src/main.js build/chrome/