Skip to content

Commit

Permalink
Fix: error when no nrfutil bin is installed (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebonnici authored Jun 27, 2024
1 parent 8cef7f7 commit 03a4c0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/configureElectronApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ const initNrfutil = () => {

const noNrfutilInstalled = !fse.existsSync(nrfutilInAppPath);
const installedNrfutilOlderThenBundledNrfutil =
nrfutilInAppPath ||
Math.round(nrfutilBundledStats.mtimeMs) >
Math.round(fse.statSync(nrfutilInAppPath).mtimeMs);
Math.round(fse.statSync(nrfutilInAppPath).mtimeMs);

if (noNrfutilInstalled || installedNrfutilOlderThenBundledNrfutil) {
fse.copyFileSync(nrfutilBundled, nrfutilInAppPath);
Expand Down

0 comments on commit 03a4c0e

Please sign in to comment.