mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-05 13:19:03 +00:00
patch application and fix potential .asar.asar changes (#163)
This commit is contained in:
parent
a264cbf832
commit
d6a95a77df
@ -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')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user