1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/app-mobile/tools/copyAssets.ts

12 lines
339 B
TypeScript
Raw Permalink Normal View History

import * as fs from 'fs-extra';
import { dirname, join } from 'path';
const copyAssets = async () => {
const appDir = dirname(__dirname);
const assetsDir = join(dirname(appDir), 'renderer', 'assets');
const webDir = join(appDir, 'web', 'public');
await fs.copy(assetsDir, join(webDir, 'pluginAssets'));
};
export default copyAssets;