html - 错误 :Submitting the app to Firefox Market Place

标签 html web-applications web-application-project firefox-os

我正在尝试向 firefox 市场提交一个新应用程序,但我不知道为什么会显示以下错误。

您的应用因 1 个错误而未能通过验证。 从 zip 文件中提取 list 时出错。

如前所述,我也无法通过服务器将其安装到 b2g 移动设备 here .. 正如它所说的“手机下载失败。

这是我的 list 文件

{ "name": "Check Location", "description": "This app allows you to check your Location!", "launch_path": "/app.html", "developer": { "name": "RB", "url": "http://nothing.me" }, "icons": { "16": "/img/icon16.png", "32": "/img/icon32.png", "48": "/img/icon48.png", "64": "/img/icon64.png", "128": "/img/icon128.png" }, "default_locale": "en",  "permissions": { "geolocation": {
            "description" : "Marking out user location"
        } } }

这是 package.manifest

{ "name": "Check Location", "description": "This app allows you to check your Location!", "launch_path": "/app.html", "developer": { "name": "RB", "url": "http://nothing.me" }, "icons": { "16": "/img/icon16.png", "32": "/img/icon32.png", "48": "/img/icon48.png", "64": "/img/icon64.png", "128": "/img/icon128.png" }, "default_locale": "en",  "permissions": { "geolocation": {
            "description" : "Marking out user location"
        } } }

我已经将 Index.html、css 和 js 文件夹粘贴到包文件夹中,并按照他们提到的方式将其压缩。但是当我将 zip 文件上传到市场时它显示错误。请帮我解决这个问题。查看完整代码 Here

最佳答案

该错误仅表示系统无法从您的 zip 文件中找到 manifest.webapp。 https://github.com/mozilla/zamboni/blob/master/mkt/developers/forms.py#L512

您应该确保 manifest.webapp 位于您的 .zip 文件的根目录中。

一个可能的错误可能是像下面这样:

zip -r foo.zip foo/*

这将创建一个 zip 文件,其根目录仅包含 foo 文件夹,因此提交系统无法找到您的 list 。

你应该这样做:

cd foo 
zip -r foo.zip *

希望对您有所帮助!

关于html - 错误 :Submitting the app to Firefox Market Place,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18505664/

相关文章:

jquery - 复杂的 Webkit 错误?相对位置 + Z-Index + 溢出隐藏 + CSS3 变换

mysql - Web 应用程序的文件存储 : Filesystem vs DB vs NoSQL engines

javascript - Silverlight、Flash 或用于在客户端运行的 Web 应用程序的 JavaScript,还是坚持使用 C#?

python - 网络应用程序 : Flask - html - wtforms: form with two submit buttons

asp.net - 如何使用 ASP.NET Web 应用程序模板知道登录何时成功

asp.net - 在 WAP 转换期间无法解析 .aspx

javascript - 交换表行

html - 我们如何在较小的屏幕尺寸下调整(缩小)div 的背景图像

javascript - Google Graphs 轴顺序

CSS 与 Web 应用程序