mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
12 lines
339 B
TypeScript
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;
|