简体   繁体   English

mac osX packageMaker:如何将目标设置为用户主目录?

[英]mac osX packageMaker: how to set the destination to the user home directory?

I am building an installer on mac osx 10.6.8 with packageMaker 3.04. 我正在使用packageMaker 3.04在mac osx 10.6.8上构建一个安装程序。 I can install a particular content at "destination" /Applications that is fine. 我可以在“目的地” /Applications中安装特定内容。 Now, I need to add another content to the user home directory ( /Documents ) 现在,我需要将另一个内容添加到用户主目录( /Documents

I have tried ~/ and $HOME/ to set the destination for that particular package, but when installing, the actual location is empty. 我已经尝试了~/$HOME/来设置该特定包的目的地,但是在安装时,实际位置是空的。

So, how can I set this properly? 那么,我该如何正确设置呢?

In Package Maker, just above the "Contents" pane on the left, select your package icon. 在Package Maker中,在左侧“内容”窗格的正上方,选择您的包图标。 Then, in the right hand pane, change Install Destination to "User home directory". 然后,在右侧窗格中,将“安装目标”更改为“用户主目录”。 Then, for all of your install locations, just use / as the root. 然后,对于所有安装位置,只需使用/作为根。 That will be interpreted as the top level home directory of the installing user. 这将被解释为安装用户的顶级主目录。

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

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