nwjs-builder-phoenix icon indicating copy to clipboard operation
nwjs-builder-phoenix copied to clipboard

plistStrings documentation help needed

Open Ajeey opened this issue 8 years ago • 4 comments

Hi,

I am trying to play around with the plistStrings and could not find relevant documentation on it. Could you point me to it?

Also how do I mention in the "plistStrings" that I want the app to be opened via a "custom protocol".

And how do I make it work for windows? I did some research and it seems we need to make some registry entry. Is that automated in this library?

Thank you

Ajeey avatar Jul 24 '17 05:07 Ajeey

Maybe something like this should work, just follow the structure of Info.plist.

{
  "build": {
    "mac": {
      "plistStrings": {
        "CFBundleURLTypes": [
          {
            "CFBundleURLName": "XXX",
            "CFBundleURLSchemes": [ "xxx", "yyy" ]
          }
        ]
      }
    }
  }
}

Unfortunately, nwjs-builder-phoenix doesn't do this for Windows, you will have to find other approaches to accomplish this.

evshiron avatar Jul 24 '17 09:07 evshiron

@evshiron can you point me to the resources to be used on windows? If its straightforward we could include it in nwjs-builder-phoenix

Ajeey avatar Jul 25 '17 06:07 Ajeey

https://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

But I think you can do this in your app at run time, rather than nwjs-builder-phoenix at build time.

evshiron avatar Jul 25 '17 07:07 evshiron

Thanks. Will look into it.

Ajeey avatar Jul 25 '17 08:07 Ajeey