GoogleChromeLabs / carlo

Web rendering surface for Node applications
Apache License 2.0
9.31k stars 309 forks source link

app_icon.png not found when run the packaged systeminfo app #100

Closed liudonghua123 closed 5 years ago

liudonghua123 commented 5 years ago

When I run npm run bundle, First I got a error about

D:\code\other\carlo\examples\systeminfo>pkg package.json
> pkg@4.3.4
> Targets not specified. Assuming:
  node11-linux-x64, node11-macos-x64, node11-win-x64
> Error! No available node version satisfies 'node11'

And I found a related issue on https://github.com/zeit/pkg/issues/568, So I changed the pkg options to use a specified --targets node10-win-x64 then it packaged successfully.

However when I run the executable generated by pkg package.json --targets node10-win-x64, I got the following errors when startup process.

image

liudonghua123 commented 5 years ago

I tried changed the pkg option like this

  "pkg": {
    "scripts": "*.js",
    "assets": ["app_icon.png", "www/**/*"]
  }

But it did not work. I also tried move the app_icon.png to www folder.