Merge pull request #53 from Nek-12/master

Fixed typo in the path to binary (linux)
This commit is contained in:
Tom 2020-08-28 08:11:46 +10:00 committed by GitHub
commit 0081e3b1a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ module.exports = async function ({ overwrite_version } = {}) {
); );
for (let bin_path of [ for (let bin_path of [
`/usr/bin/${__notion.split('/')[2]}`, `/usr/bin/${__notion.split('/')[2]}`,
`${__notion}${__notion.split('/')[2]}`, `${__notion}/${__notion.split('/')[2]}`,
]) { ]) {
const bin_script = await fs.readFile(bin_path, 'utf8'); const bin_script = await fs.readFile(bin_path, 'utf8');
if (bin_script.includes('app.asar')) { if (bin_script.includes('app.asar')) {

View File

@ -101,7 +101,7 @@ module.exports = async function ({ overwrite_asar, delete_data } = {}) {
); );
for (let bin_path of [ for (let bin_path of [
`/usr/bin/${__notion.split('/')[2]}`, `/usr/bin/${__notion.split('/')[2]}`,
`${__notion}${__notion.split('/')[2]}`, `${__notion}/${__notion.split('/')[2]}`,
]) { ]) {
const bin_script = await fs.readFile(bin_path, 'utf8'); const bin_script = await fs.readFile(bin_path, 'utf8');
if (!bin_script.includes('app.asar')) { if (!bin_script.includes('app.asar')) {