diff --git a/electron-builder.yml b/electron-builder.yml index b55841aa7d..5824581241 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -9,8 +9,6 @@ files: - generated - lib/shared/catalina-sudo/sudo-askpass.osascript-zh.js - lib/shared/catalina-sudo/sudo-askpass.osascript-en.js -extraResources: - - generated/etcher-util mac: icon: assets/icon.icns category: public.app-category.developer-tools diff --git a/lib/gui/app/modules/image-writer.ts b/lib/gui/app/modules/image-writer.ts index ae3c41ff47..07a39a1192 100644 --- a/lib/gui/app/modules/image-writer.ts +++ b/lib/gui/app/modules/image-writer.ts @@ -92,10 +92,8 @@ function terminateServer() { ipc.server.stop(); } -// to test in development mode, add `'generated'` in the path before `'etcher-util'` function writerArgv(): string[] { - // let entryPoint = path.join(getAppPath(), 'etcher-util'); - let entryPoint = process.resourcesPath; + let entryPoint = path.join(getAppPath(), 'generated', 'etcher-util'); // AppImages run over FUSE, so the files inside the mount point // can only be accessed by the user that mounted the AppImage. // This means we can't re-spawn Etcher as root from the same