Bundles and Packages

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帮助开发者打包代码和操作系统帮助访问。 

 

原文地址:https://www.cnblogs.com/tekkaman/p/2205374.html