From 9f83321e5a3072a88ca9570be3bdb01dfe5b5760 Mon Sep 17 00:00:00 2001 From: Nihaal Sangha <18350092+nihaals@users.noreply.github.com> Date: Thu, 15 Oct 2020 22:35:57 +0100 Subject: [PATCH] Add replace for other electron app.asar usages --- pkg/apply.js | 2 ++ pkg/remove.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pkg/apply.js b/pkg/apply.js index 3518e1c..0d2f477 100644 --- a/pkg/apply.js +++ b/pkg/apply.js @@ -78,6 +78,8 @@ module.exports = async function ({ overwrite_version, friendly_errors } = {}) { bin_script .replace('electron app.asar\n', 'electron app\n') .replace('electron6 app.asar\n', 'electron6 app\n') + .replace('electron app.asar ', 'electron app ') + .replace('electron6 app.asar ', 'electron6 app ') ); } } diff --git a/pkg/remove.js b/pkg/remove.js index de15650..8af4277 100644 --- a/pkg/remove.js +++ b/pkg/remove.js @@ -105,6 +105,8 @@ module.exports = async function ({ bin_script .replace('electron app\n', 'electron app.asar\n') .replace('electron6 app\n', 'electron6 app.asar\n') + .replace('electron app.asar ', 'electron app ') + .replace('electron6 app.asar ', 'electron6 app ') ); } }