use app.isPackaged instead of checking for node env development (#5465)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Zane
2025-11-04 11:47:51 -08:00
committed by GitHub
parent ae7e713d37
commit ff49fa1617
5 changed files with 6 additions and 66 deletions
+1 -3
View File
@@ -71,9 +71,7 @@ const addPaths = (
executableName: string,
app: Electron.App
): void => {
const isDev = process.env.NODE_ENV === 'development';
const isPackaged = app.isPackaged;
if (isDev && !isPackaged) {
if (!app.isPackaged) {
possiblePaths.push(
path.join(process.cwd(), 'src', 'bin', executableName),
path.join(process.cwd(), 'bin', executableName),