简体   繁体   English

在mac os x中创建包

[英]Creating package in mac os x

What is the equivalent of .deb and .rpm in Mac OS X? 在Mac OS X中等效的.deb和.rpm是什么?

I am trying to create a package in Mac OS X which will include necessary libraries and scripts. 我正在尝试在Mac OS X中创建一个包,其中包含必要的库和脚本。

There are several approaches for Mac installation. Mac安装有几种方法。

  • Simplest: self-contained application ( Foo.app ). 最简单:自包含应用程序( Foo.app )。 You put everything in a directory (in a particular hierarchy), give the directory the .app extension, and ask the user to copy it into /Applications . 您将所有内容放在一个目录中(在特定的层次结构中),为该目录指定.app扩展名,并要求用户将其复制到/Applications All necessary libraries and scripts should be included inside the directory. 所有必需的库和脚本都应包含在目录中。 It is commonly distributed inside a .dmg file, which is a disk image. 它通常分布在.dmg文件中,该文件是磁盘映像。

  • Installer: Uses a .pkg archive , which will be opened by Apple's Installer. 安装程序:使用.pkg存档 ,该存档将由Apple的安装程序打开。 It has capability to install libraries in root-restricted areas (after asking the user for the password). 它具有在根限制区域中安装库的能力(在询问用户密码之后)。

  • Homebrew/Fink/MacPorts - open-source projects that provide functionality ranging from that of Debian's Aptitude to that of BSD's Ports. Homebrew / Fink / MacPorts - 开源项目,提供从Debian的Aptitude到BSD的Ports的功能。 Authors write down recipes that the installer executes, which resolve dependencies and install necessary related packages. 作者写下安装程序执行的配方,解决依赖关系并安装必要的相关包。 I believe Homebrew is now the most popular of these, with recipes being written in a Ruby DSL. 我相信Homebrew现在是最受欢迎的,其中的食谱是用Ruby DSL编写的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM