mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Doc: Updated list of dependencies
This commit is contained in:
parent
ee6325e3c2
commit
e4123b4ad9
5
BUILD.md
5
BUILD.md
@ -7,7 +7,10 @@ Note that all the applications share the same library, which, for historical rea
|
||||
## Required dependencies
|
||||
|
||||
- Install yarn - https://yarnpkg.com/lang/en/docs/install/
|
||||
- Install node - https://nodejs.org/en/
|
||||
- Install node 10+ - https://nodejs.org/en/
|
||||
- macOS, Linux: Install rsync - https://nodejs.org/en/
|
||||
- macOS: Install Cocoapods - `brew install cocoapods`
|
||||
- Windows: Install Windows Build Tools - `npm install -g windows-build-tools`
|
||||
|
||||
## Building
|
||||
|
||||
|
@ -1,27 +0,0 @@
|
||||
const util = require('util');
|
||||
const exec = util.promisify(require('child_process').exec);
|
||||
|
||||
const verifyBuildToolInstallation = async (tool, checkCommand, installCommand) => {
|
||||
try {
|
||||
const { stdout } = await exec(checkCommand);
|
||||
console.log(`${tool} is Installed: ${stdout}`);
|
||||
} catch (error) {
|
||||
console.warn(`WARNING: This development tool is not installed: "${tool}". Please install it using your package manager. For example: ${installCommand}`);
|
||||
}
|
||||
};
|
||||
|
||||
switch (process.platform) {
|
||||
case 'win32':
|
||||
verifyBuildToolInstallation('Windows Build Tools', 'npm list -g windows-build-tools', 'npm install --global windows-build-tools');
|
||||
break;
|
||||
case 'darwin':
|
||||
verifyBuildToolInstallation('CocoaPods', 'pod --version', 'sudo gem install cocoapods');
|
||||
verifyBuildToolInstallation('rsync', 'rsync --version', 'sudo port install rsync');
|
||||
break;
|
||||
case 'linux':
|
||||
verifyBuildToolInstallation('rsync', 'rsync --version', 'sudo apt-get install rsync');
|
||||
break;
|
||||
default:
|
||||
console.log('WARNING: Please ensure that you read the documentation to know the necessary build tools that must be installed in your system to successfullly build this project');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user