Skip to content

Commit

Permalink
patch: bundle etcher-util as an extraRessource
Browse files Browse the repository at this point in the history
  • Loading branch information
aethernet committed Aug 31, 2023
1 parent 5490200 commit 493dfed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions lib/gui/app/modules/image-writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 493dfed

Please sign in to comment.