mirror of
https://github.com/moparisthebest/mail
synced 2024-12-01 13:22:16 -05:00
24 lines
523 B
Bash
Executable File
24 lines
523 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "--> copying dependencies to src\n"
|
|
|
|
# go to root
|
|
cd `dirname $0`
|
|
cd ..
|
|
|
|
# copy crypto lib
|
|
cp ./node_modules/crypto-lib/src/*.js ./src/js/crypto/
|
|
cp ./node_modules/crypto-lib/node_modules/node-forge/js/*.js ./src/lib/
|
|
|
|
# build imap/smtp modules and copy
|
|
cd ./node_modules/imap-client/
|
|
npm install && node build.js
|
|
cp ./src-gen/*.js ../../src/lib/
|
|
cd ../../
|
|
|
|
cd ./node_modules/smtp-client/
|
|
npm install && node build.js
|
|
cp ./src-gen/*.js ../../src/lib/
|
|
cd ../../
|
|
|
|
echo "\n--> finished copying dependencies.\n" |