1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/packages/app-mobile/tools/copyAssets.ts
2024-08-02 14:51:49 +01:00

12 lines
339 B
TypeScript

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;