打包 Magento 扩展时找不到包

发布于 2024-11-05 07:48:50 字数 136 浏览 1 评论 0原文

我为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

红焚 2024-11-12 07:48:50

请参阅这篇文章:- 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)。

从 var/pear 上传 1.0 版本时 – Magento Connect 将
为您制作2.0版本。如果您只想支持 1.5 和
更高版本的 Magento 只能从以下位置上传 2.0 文件
var/connect 目录到 Magento。来源:
http://www.magentocommerce.com/wiki/7_-_magento_connect/packaging_a_magento_extension_in_1.5

编辑

我尝试创建一个包含 app/designskin 文件夹的包。它工作正常,我可以在 var/pear 内的包文件中看到其他文件夹和文件。

我使用默认主题和默认皮肤进行了测试。在“内容”部分,我保持这样:-

Target: Magento Theme Skin
Path: frontend/default/default
Type: Recursive Dir

Target: Magento User Interface
Path: frontend/default/default
Type: Recursive Dir

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).

When uploading the 1.0 version from var/pear – Magento Connect will
make the 2.0 version for you. If you wish to only support 1.5 and
higher versions of Magento only then only upload the 2.0 file from the
var/connect directory to Magento. Source:
http://www.magentocommerce.com/wiki/7_-_magento_connect/packaging_a_magento_extension_in_1.5

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:-

Target: Magento Theme Skin
Path: frontend/default/default
Type: Recursive Dir

Target: Magento User Interface
Path: frontend/default/default
Type: Recursive Dir
月亮坠入山谷 2024-11-12 07:48:50

您为“支持的版本”选择了哪个版本?也检查 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.

寄与心 2024-11-12 07:48:50

包以 .tgz 扩展名保存,因此

find . -name '*.tgz'

从 magento 基本文件夹运行始终是查找包的好方法。

此外,从 1.5 开始,Magento 更改了他们的包管理系统。这就是为什么您必须选择受支持的版本选项。对于 1.5 及更高版本的软件包,默认情况下,Magento 会将文件放入

var/connect

var/package 文件夹中,仅当您选择创建 1.5 之前的软件包时才使用。

Packges are saved with a .tgz extension, so running

find . -name '*.tgz'

from 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

var/connect

The var/package folder is only used if you opt to create a pre 1.5 package.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文