Is there an option which support to run some custom scripts before launching the app?
Author: northwang-luckyCreated Jul 27, 2023Updated Aug 26, 2023
Labelsquestion
Homework
- I took the time to write a good, descriptive issue title
- I read
nativefier --helpand API.md. - I checked CATALOG.md for community suggestions & workarounds.
- I searched existing issues, open & closed. Yes, my question is new.
- I'm running the latest version.
Your question
Is there an option which support to run some custom scripts before launching the app in electron?
Such as:
nativefier --hooks-before-launching ./pre-script.js http://xxx// ./pre-script.js
export default function (tools) {
tools.exec('echo "Hello World"')
}Steps to reproduce
nativefier --verbose --some-option https://mysite.com
<paste your verbose build logs, if relevant to your question>Debug info
No response
Nativefier version
50.1.1
Node.js version
16.20.0
npm version
8.19.4
OS
MacOS Ventura 13.4.1
Source: nativefier/nativefier