mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
12 lines
447 B
JavaScript
12 lines
447 B
JavaScript
const fs = require('fs-extra');
|
|
|
|
const sourcePath = `${__dirname}../../../ReactNativeClient/lib/randomClipperPort.js`;
|
|
|
|
// Mozilla insists on building the clipper from a tarball, not from the repository
|
|
// so we add this check and only copy the file if it's present. Normally it rarely
|
|
// changes anyway and it is committed to the repo.
|
|
|
|
if (fs.pathExistsSync(sourcePath)) {
|
|
fs.copySync(sourcePath, `${__dirname}/../src/randomClipperPort.js`);
|
|
}
|