Skip to content

Parsing package-json: node-remote #154

@vzr314

Description

@vzr314

As of version 0.13+, NWJS accepts array of strings for node-remote parameter, example (package.json):

"node-remote": [ "http://remotehost", "https://remotehost" ]

Unfortunately, I found Web2Executable strip this parameter back into multiple strings in intermediate package.json, which will cause newly created application fail to load with following code into (package.json):

"node-remote": "https://localhost", "http://localhost", "https://remotehost", http://remotehost"

Exception trown:

Invalid value for 'app.urls[0]': Missing scheme separator

To fix this, one need to edit settings.cfg:62

from:
type='string'
to:
type='strings'

Pay additional attention that there should be no whitespaces after commas.

Thanks for your commitment, keep up good work & have fun!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions