1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Cleaned up Electron building step

This commit is contained in:
Laurent Cozic 2017-11-04 11:46:06 +00:00
parent d601ed737b
commit 4f831f91f9
8 changed files with 22 additions and 3 deletions

View File

@ -140,6 +140,9 @@ async function main() {
const rnJsonLocaleDir = rnDir + '/locales';
await execCommand('rsync -a "' + jsonLocalesDir + '/" "' + rnJsonLocaleDir + '"');
const electronJsonLocaleDir = rootDir + '/ElectronClient/build/locales';
await execCommand('rsync -a "' + jsonLocalesDir + '/" "' + electronJsonLocaleDir + '"');
}
main().catch((error) => {

View File

@ -1 +1,2 @@
node_modules/
build/

15
ElectronClient/build.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BUILD_DIR="$ROOT_DIR/build"
rsync -a app/ $BUILD_DIR/
rsync -a "$ROOT_DIR/../ReactNativeClient/lib/" "$BUILD_DIR/lib/"
TRANSLATION_BUILD_SCRIPT="$ROOT_DIR/../CliClient/build/build-translation.js"
if [[ ! -f $TRANSLATION_BUILD_SCRIPT ]]; then
echo "Build the CLI app first ($TRANSLATION_BUILD_SCRIPT missing)"
exit 1
fi
node "$TRANSLATION_BUILD_SCRIPT" --silent

View File

@ -1,4 +1,4 @@
#!/bin/bash
/mnt/c/Users/Laurent/AppData/Roaming/npm/electron .
# /mnt/c/Users/Laurent/AppData/Roaming/npm/npm
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$ROOT_DIR/build"
node_modules/.bin/electron .