patch application and fix potential .asar.asar changes (#163)

This commit is contained in:
dragonwocky 2020-10-16 17:29:33 +11:00
parent a264cbf832
commit d6a95a77df
Signed by: dragonwocky
GPG Key ID: C7A48B7846AA706D
2 changed files with 3 additions and 2 deletions

View File

@ -76,8 +76,8 @@ module.exports = async function ({ overwrite_version, friendly_errors } = {}) {
await fs.outputFile( await fs.outputFile(
bin_path, bin_path,
bin_script bin_script
.replace('electron app.asar\n', 'electron app\n') .replace('electron app.asar', 'electron app')
.replace('electron6 app.asar\n', 'electron6 app\n') .replace('electron6 app.asar', 'electron6 app')
); );
} }
} }

View File

@ -105,6 +105,7 @@ module.exports = async function ({
bin_script bin_script
.replace('electron app', 'electron app.asar') .replace('electron app', 'electron app.asar')
.replace('electron6 app', 'electron6 app.asar') .replace('electron6 app', 'electron6 app.asar')
.replace(/(.asar)+/g, '.asar')
); );
} }
} }