Skip to content

Commit d60bf4c

Browse files
committed
get back "electron-mail" executable name, closes #736
* Unintentional "electron-mail => ElectronMail" renaming in v5.3.1 got caused by electron-userland/electron-builder#9068.
1 parent de14961 commit d60bf4c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

electron-builder.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
appId: 'github.com/vladimiry/ElectronMail'
22
artifactName: ${name}-${version}-${os}-${arch}.${ext}
33
productName: 'ElectronMail'
4+
executableName: 'electron-mail'
45
publish: null
56
forceCodeSigning: false
67

scripts/electron-builder/build-appimage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from "path";
22

33
import {addCommandLineArgs, build, DISABLE_SANDBOX_ARGS_LINE, ensureFileHasNoSuidBit} from "scripts/electron-builder/lib";
44
import {assertPathIsInCwd, catchTopLeventAsync, execShell, resolveExecutable} from "scripts/lib";
5-
import {PRODUCT_NAME} from "src/shared/const";
5+
import {BINARY_NAME} from "src/shared/const";
66

77
// TODO pass destination directory instead of hardcoding it ("--appimage-extract" doesn't support destination parameter at the moment)
88
const extractedImageFolderName = "squashfs-root";
@@ -58,7 +58,7 @@ async function postProcess({packageFile}: {packageFile: string}): Promise<void>
5858
searchValue,
5959
replaceWith: `${searchValue} ${DISABLE_SANDBOX_ARGS_LINE}`,
6060
});
61-
ensureFileHasNoSuidBit(path.join(packageDir, PRODUCT_NAME));
61+
ensureFileHasNoSuidBit(path.join(packageDir, BINARY_NAME));
6262
await packAndCleanup({packageDir, packageFile});
6363
}
6464

0 commit comments

Comments
 (0)