From f91e1d19ac91e1ffed9e6d71e1f14f269ff83f77 Mon Sep 17 00:00:00 2001 From: Nek-12 Date: Wed, 7 Apr 2021 13:01:10 +0300 Subject: [PATCH] fixed linux app launcher to take care of all versions of electron --- bin.js | 0 pkg/apply.js | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) mode change 100644 => 100755 bin.js diff --git a/bin.js b/bin.js old mode 100644 new mode 100755 diff --git a/pkg/apply.js b/pkg/apply.js index fb4a9a3..5fbf5da 100644 --- a/pkg/apply.js +++ b/pkg/apply.js @@ -79,8 +79,7 @@ module.exports = async function ({ overwrite_version, friendly_errors } = {}) { await fs.outputFile( bin_path, bin_script - .replace('electron app.asar\n', 'electron app\n') - .replace('electron6 app.asar\n', 'electron6 app\n') + .replace(' app.asar ', ' app ') ); } }