mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 10:29:11 +00:00
13 lines
418 B
JavaScript
13 lines
418 B
JavaScript
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const source = path.join(__dirname, 'node_modules/electron/dist/ffmpeg.dll');
|
|
const destination = path.join(__dirname, 'dist/win-unpacked/ffmpeg.dll');
|
|
|
|
if (fs.existsSync(source)) {
|
|
fs.copyFileSync(source, destination);
|
|
console.log('ffmpeg.dll copiado exitosamente.');
|
|
} else {
|
|
console.error('No se encontró ffmpeg.dll en el directorio de Electron.');
|
|
}
|