#1554·nativefier

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

Your question

Is there an option which support to run some custom scripts before launching the app in electron?

Such as:

bash
nativefier --hooks-before-launching ./pre-script.js http://xxx
javascript
// ./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