Remove .gitignore and add dist and node_modules (LFS for .exe)

Made-with: Cursor
This commit is contained in:
Michael-A-Sloan committed 2026-03-11 17:40:35 -04:00
1 parent 1fc4db96c8
commit 048ab8b980
5819 files changed
+1357436 -2

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
const path = require('path');
const fs = require('fs');
/**
* Ensure ffmpeg.dll is next to the exe (appOutDir) so the portable exe finds it.
* extraFiles may place it in resources/app; copy to root if needed.
*/
module.exports = async function (context) {
if (context.electronPlatformName !== 'win32') return;
const appOutDir = context.appOutDir;
const rootFfmpeg = path.join(appOutDir, 'ffmpeg.dll');
const appFfmpeg = path.join(appOutDir, 'resources', 'app', 'ffmpeg.dll');
if (fs.existsSync(rootFfmpeg)) return; // already in place
if (fs.existsSync(appFfmpeg)) {
fs.copyFileSync(appFfmpeg, rootFfmpeg);
}
};