1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/ElectronClient/tools/copyPluginAssets.js
2020-06-22 23:06:47 +01:00

18 lines
438 B
JavaScript

const utils = require('../../Tools/gulp/utils');
async function main() {
const rootDir = `${__dirname}/..`;
const sourceDir = `${rootDir}/../ReactNativeClient/lib/joplin-renderer/assets`;
const destDirs = [
`${rootDir}/gui/note-viewer/pluginAssets`,
`${rootDir}/pluginAssets`,
];
for (const destDir of destDirs) {
console.info(`Copying to ${destDir}`);
await utils.copyDir(sourceDir, destDir);
}
}
module.exports = main;