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:
parent
d601ed737b
commit
4f831f91f9
@ -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) => {
|
||||
|
1
ElectronClient/.gitignore
vendored
1
ElectronClient/.gitignore
vendored
@ -1 +1,2 @@
|
||||
node_modules/
|
||||
build/
|
||||
|
15
ElectronClient/build.sh
Normal file
15
ElectronClient/build.sh
Normal 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
|
@ -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 .
|
Loading…
Reference in New Issue
Block a user