mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +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;
|