Reputation: 11
I'm finding it hard to run the nwjs app in sdk version in project terminal if we run
nw
usually it opens nw app but in normal version
I want to use debugging tools and it only works in sdk version. I know to open manually ie. if we drag the project folder to nw.exe means it opens in sdk mode.
I wonder if there is any code or command line prompt to open it
i tried running the nw command and it opened in normal version I want to run the nwjs app in sdk version using terminal or cmd
Upvotes: 0
Views: 564
Reputation: 11
the following thing worked for me.
in the project folder update the package.json as,
{
"name": "appName",
"main": "index.html",
"scripts": {
"manual": "nw .",
},
"devDependencies": {
"nw": "0.82.0-sdk"
},
"engines": {
"node": "v20.5.0",
"npm": "9.8.0"
},
"packageManager": "[email protected]",
}
now run the script in command prompt as,
npm run manual
This should open your app in nwjs sdk mode :)
Upvotes: 0
Reputation: 603
Run /path/to/sdk/nw.exe .
when you're in the project directory containing package.json
.
Upvotes: 0