2015-07-13 2 views
0

Я делаю свое первое настольное приложение с помощью node-webkit.
я все шаги, чтобы упаковать приложение на окнах, но я получаю эту ошибку:Нет приложения 'package.json' - node-webkit

There is no 'package.json' in the package, please make sure the 'package.json' is in the root of the package. 

Хотя пакет находится в корневом каталоге.

ответ

0

Ok Я нашел ошибку. Фактически, я сжимал папку, содержащую пакет json и другие файлы. Так что я сделал было так:

App.zip 
| 
|-App 
    |-package.json 
    |-Other files 

Что правильно это:

App.zip 
    |-package.json 
    |-Other files 
0

образец package.json файл

{ 
     "name": "name of app", 
     "version": "1.0.0", 
     "main": "index.html", 
     "single-instance": true, 
     "node-remote": "<local>", 
     "window": { 
      "title": "name to show in title bar", 
      "icon": "icon to show in titlebar", 
      "position": "center", 
      "min_width": 1024, 
      "min_height": 600, 
      "toolbar": true, 
      "width": 1362, 
      "height": 768 
     }, 
     "dependencies": { 
      "express": "3.x" 
     }, 
     "webkit": { 
      "plugin": true 
     } 
    }