You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-06 09:19:22 +02:00
Merge branch 'master' of github.com:laurent22/joplin
This commit is contained in:
21
BUILD.md
21
BUILD.md
@@ -1,20 +1,21 @@
|
|||||||
# General information
|
# General information
|
||||||
|
|
||||||
- All the applications share the same library, which, for historical reasons, is in ReactNativeClient/lib. This library is copied to the relevant directories when builing each app.
|
- All the applications share the same library, which, for historical reasons, is in ReactNativeClient/lib. This library is copied to the relevant directories when builing each app.
|
||||||
- The translations are built by running CliClient/build-translation.sh. For this reasons, it's generally better to get the CLI app to build first so that everything is setup correctly.
|
- The translations are built by running CliClient/build-translation.sh. You normally don't need to run this if you haven't updated the translation since the compiled files are on the repository.
|
||||||
- Note: building translations is no longer required to run the apps, so you can ignore all the below requirements about gettext.
|
|
||||||
|
|
||||||
## macOS dependencies
|
## macOS dependencies
|
||||||
|
|
||||||
brew install yarn node xgettext
|
brew install yarn node
|
||||||
npm install -g node-gyp
|
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
|
||||||
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile
|
source ~/.bash_profile
|
||||||
source ~/.bash_profile
|
|
||||||
|
If you get a node-gyp related error you might need to manually install it: `npm install -g node-gyp`
|
||||||
|
|
||||||
## Linux and Windows dependencies
|
## Linux and Windows (WSL) dependencies
|
||||||
|
|
||||||
- Install yarn - https://yarnpkg.com/lang/en/docs/install/
|
- Install yarn - https://yarnpkg.com/lang/en/docs/install/
|
||||||
- Install node v8.x (check with `node --version`) - https://nodejs.org/en/
|
- Install node v8.x (check with `node --version`) - https://nodejs.org/en/
|
||||||
|
- If you get a node-gyp related error you might need to manually install it: `npm install -g node-gyp`
|
||||||
|
|
||||||
# Building the Electron application
|
# Building the Electron application
|
||||||
|
|
||||||
@@ -37,4 +38,8 @@ From `/ReactNativeClient`, run `npm install`, then `react-native run-ios` or `re
|
|||||||
|
|
||||||
# Building the Terminal application
|
# Building the Terminal application
|
||||||
|
|
||||||
From `/CliClient`, run `npm install` then run `run.sh`. If you get an error about `xgettext`, comment out the command `node build-translation.js --silent` in build.sh
|
From `/CliClient`:
|
||||||
|
- Run `npm install`
|
||||||
|
- Then `build.sh`
|
||||||
|
- Copy the translations to the build directory: `rsync -aP ../ReactNativeClient/locales/ build/locales/`
|
||||||
|
- Run `run.sh` to start the application for testing.
|
||||||
|
|||||||
Reference in New Issue
Block a user