2017-06-25 18:30:44 +02:00
|
|
|
#!/bin/bash
|
2017-07-18 20:04:47 +02:00
|
|
|
|
2017-08-04 22:13:29 +02:00
|
|
|
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2017-11-03 20:39:08 +02:00
|
|
|
BUILD_DIR="$ROOT_DIR/build"
|
2017-06-25 18:30:44 +02:00
|
|
|
|
2017-11-04 14:23:46 +02:00
|
|
|
rsync -a --exclude "node_modules/" "$ROOT_DIR/app/" "$BUILD_DIR/"
|
2017-12-14 20:12:14 +02:00
|
|
|
rsync -a --delete "$ROOT_DIR/../ReactNativeClient/lib/" "$BUILD_DIR/lib/"
|
2019-09-24 00:01:05 +02:00
|
|
|
rsync -a --delete "$ROOT_DIR/../ReactNativeClient/locales/" "$BUILD_DIR/locales/"
|
2017-11-03 20:39:08 +02:00
|
|
|
cp "$ROOT_DIR/package.json" "$BUILD_DIR"
|
2019-12-13 03:16:34 +02:00
|
|
|
|
2019-12-18 13:00:52 +02:00
|
|
|
# Don't add TypeScript here or make it silent as output of Cli app must be clean
|
|
|
|
# cd $ROOT_DIR/..
|
|
|
|
# npm run tsc
|
|
|
|
# cd $ROOT_DIR
|
2019-12-13 03:16:34 +02:00
|
|
|
|
2017-12-04 19:55:06 +02:00
|
|
|
chmod 755 "$BUILD_DIR/main.js"
|