Skip to content

Commit

Permalink
fix(win): incorrect isElectronApp logic (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 and pd4d10 authored Jul 9, 2024
1 parent 481caf9 commit 00c53d9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/platforms/win.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,13 @@ const getAppInfoFromRegeditItemValues = async (
function isElectronApp(installDir: string) {
return (
fs.existsSync(path.join(installDir, "resources")) &&
["electron.asar", "app.asar", "app.asar.unpacked"].some((file) =>
fs.existsSync(path.join(installDir, "resources", file)),
)
[
"electron.asar",
// https://github.com/pd4d10/debugtron/pull/26
"default_app.asar",
"app.asar",
"app.asar.unpacked",
].some((file) => fs.existsSync(path.join(installDir, "resources", file)))
);
}

Expand Down

0 comments on commit 00c53d9

Please sign in to comment.