通过Url向Firefox Marketplace提交应用程序

我可以通过URL安装,但我无法上传到Firefox市场。

但我有2个错误:

JSON Parse Error

Error: The webapp extension could not be parsed due to a syntax error in the JSON.
No JSON object could be decoded: line 1 column 0 (char 0)

以及JSON是这样的:

{
  "name": "Snake",
  "description": "Snake in html and js",
  "launch_path": "/index.html",
  "developer": {
    "name": "ZiTAL",
    "url": "https://github.com/ZiTAL/snakejs"
  },
 "icons": {
    "128": "/img/snake-128.png"
  },  
"installs_allowed_from": ["*"]
}

第二个错误:

Manifests must be served with the HTTP header "Content-Type: application/x-web-app-manifest+json". See https://developer.mozilla.org/docs/Web/Apps/Manifest#Serving_manifests for more information.

以及如果我用wget下载:

wget http://myurl/manifest.webapp

标题是确定的

HTTP eskaera bidalia, erantzunaren zain... 200 OK
Luzera: 267 [application/x-web-app-manifest+json]
Saving to: ‘manifest.webapp’

要验证应用程序,您需要将manifest.webapp url,而不是应用程序url:

http://myurl/manifest.webapp

第二个错误:

如果Content-Type标头确实是正确的,你可以尝试使用wget --save-headers并查看输出文件。

链接地址: http://www.djcxy.com/p/13989.html

上一篇: Submit an App by Url to Firefox Marketplace

下一篇: Source of icons in adaptive apps search?