mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-30 08:26:59 +02:00
16 lines
526 B
Bash
Executable File
16 lines
526 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
BUILD_DIR="$ROOT_DIR/build"
|
|
|
|
rsync -a --exclude "node_modules/" "$ROOT_DIR/app/" "$BUILD_DIR/"
|
|
rsync -a --delete "$ROOT_DIR/../ReactNativeClient/lib/" "$BUILD_DIR/lib/"
|
|
rsync -a --delete "$ROOT_DIR/../ReactNativeClient/locales/" "$BUILD_DIR/locales/"
|
|
cp "$ROOT_DIR/package.json" "$BUILD_DIR"
|
|
|
|
# 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
|
|
|
|
chmod 755 "$BUILD_DIR/main.js" |