打包 Magento 扩展时找不到包
我为 magento 创建了一个新主题。我想将其提交到社区。当我尝试打包扩展时,我收到 包数据已保存 消息,但 var 中没有包/pear 目录。是否无法在本地主机中打包扩展?您需要更多信息吗?如有任何帮助,我们将不胜感激。
I have created a new theme for magento.I want to submit it to the communtity.When i tried to package extension,I m getting The package data has been saved message,but there is no package in var/pear directory.Is it not possible to pack extension in localhost?Do you need more information?Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请参阅这篇文章:- Magento:如何创建扩展包裹? (图片)
检查数据是否填写正确。
创建扩展包时,在包信息 -> 下支持的版本
如果您选择了“1.5.0.0 及更高版本”,那么您的扩展包将存储在 var/connect 目录中。这支持 Magento connect 2.0。
如果您选择了“Pre-1.5.0.0”,那么您的扩展包将存储在 var/pear 目录中。这是针对 Magento connect 1.0 的。
如果您选择了这两个选项,则扩展包将存储在两个位置(var/connect 和 var/pear)。
编辑:
我尝试创建一个包含 app/design 和 skin 文件夹的包。它工作正常,我可以在 var/pear 内的包文件中看到其他文件夹和文件。
我使用默认主题和默认皮肤进行了测试。在“内容”部分,我保持这样:-
Please see this article:- Magento: How to create extension package? (IMAGES)
Check if the data is filled correctly.
While creating your extension package, under Package Info -> Supported releases
If you have chosen "1.5.0.0 & later" then your extension package is stored in var/connect directory. This supports Magento connect 2.0.
If you have chosen "Pre-1.5.0.0" then your extension package is stored in var/pear directory. This is for Magento connect 1.0.
If you have selected both options, then the extension packages is stored in both places (var/connect and var/pear).
Edit:
I tried to create a package with app/design and skin folder. It worked fine and I could see other folder and files in the package file inside var/pear.
I tested with default theme and default skin. In 'Contents' section, I kept like this:-
您为“支持的版本”选择了哪个版本?也检查
var/package/
文件夹。检查这两个文件夹是否具有用户和组写入权限。What version did you select for "Supported releases"? Check in the
var/package/
folder too. Check both folders have user and group write access.包以
.tgz
扩展名保存,因此从 magento 基本文件夹运行始终是查找包的好方法。
此外,从 1.5 开始,Magento 更改了他们的包管理系统。这就是为什么您必须选择受支持的版本选项。对于 1.5 及更高版本的软件包,默认情况下,Magento 会将文件放入
var/package
文件夹中,仅当您选择创建 1.5 之前的软件包时才使用。Packges are saved with a
.tgz
extension, so runningfrom the magento base folder is always a good way to find your packages.
Also, as of 1.5, Magento changed their package management system. This is why you had to choose a supported releases option. For 1.5 and later packages Magento will, by default, drop the files into
The
var/package
folder is only used if you opt to create a pre 1.5 package.