Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does electronic report an error after packaging ? #9

Open
huangtian615 opened this issue Aug 14, 2022 · 1 comment
Open

Why does electronic report an error after packaging ? #9

huangtian615 opened this issue Aug 14, 2022 · 1 comment

Comments

@huangtian615
Copy link

image

@absir1949
Copy link

i think you should patches:

--- a/node_modules/ffmpeg-static-electron/index.js
+++ b/node_modules/ffmpeg-static-electron/index.js
@@ -21,7 +21,7 @@ if (platform === 'mac' && (arch !== 'x64' &&  arch !== 'arm64' )) {
 }
 
 var ffmpegPath = path.join(
-  __dirname,
+  __dirname.replace('app.asar','app.asar.unpacked'),
   'bin',
   platform,
   arch,

@huangtian615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants