xcode 如何制作 Mac 安装程序将简单地从中安装(复制)文件的 .pkg?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4588283/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to make a .pkg that the Mac Installer will simply install (copy) files from?
提问by downbeat
My goal is to create a .pkg that will simply instruct the Mac Installer to simply install files, like fonts, from the .pkg to a directory when run. I've tried using Xcode, but it seems more application oriented.
我的目标是创建一个 .pkg,它只会指示 Mac 安装程序在运行时简单地将文件(如字体)从 .pkg 安装到目录中。我试过使用 Xcode,但它似乎更面向应用程序。
How do I configure Xcode with a generic document so I can Build and Archive, then Share using the Organizer to create the .pkg?
如何使用通用文档配置 Xcode,以便我可以构建和存档,然后使用管理器共享以创建 .pkg?
The Copy Files Target appears to be in use only at build time, so that doesn't seem to be much help.
Copy Files Target 似乎只在构建时使用,所以这似乎没有多大帮助。
回答by ダンボー
You should use the PackageMaker application, not Xcode. You can find it under /Developer/Applications/Utilities.
您应该使用 PackageMaker 应用程序,而不是 Xcode。您可以在 /Developer/Applications/Utilities 下找到它。