【E文原文】
Although bundles and packages are sometimes referred to interchangeably, they actually represent very distinct concepts:
-
A package is any directory that the Finder presents to the user as if it were a single file.
-
A bundle is a directory with a standardized hierarchical structure that holds executable code and the resources used by that code.
Whereas packages are there to improve the user experience, bundles are geared more toward helping developers package their code and to helping the operating system access that code
【译文】
虽然 bundles 和 packages 有时可交换,它们实际上代表着两个很不相同的概念。
1.一个 package 是在Finder中表现为一个单独文件的目录。
2.一个 bundle 是一个目录,它拥有标准层级目录,包含了应用程序执行代码和资源。
packages用来改善用户体验,bundles帮助开发者打包代码和操作系统帮助访问。
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步