通过Url将应用程序提交到Firefox Marketplace

时间:2014-01-12 18:01:31

标签: marketplace firefox-os

我可以使用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’

2 个答案:

答案 0 :(得分:1)

要验证应用,您需要输入 manifest.webapp 网址,而不是应用网址:

http://myurl/manifest.webapp

答案 1 :(得分:0)

第二个错误:

如果Content-Type标头真的正确,您可以尝试wget --save-headers并查看输出文件...