[英]Run a Python script from PackageMaker in OSX
I'm having a difficult time finding any decent documentation for packaging on OSX. 我很难找到在OSX上打包的任何体面的文档。 My package needs to run a Python script that will do some launchd magic right after the app is installed.
我的程序包需要运行一个Python脚本,该脚本将在安装该应用程序后立即执行一些已启动的操作。 I tried using
-s scripts
with packagemaker and put my script in the directory scripts
, but I had no luck. 我尝试将
-s scripts
与packagemaker一起使用,并将我的脚本放入目录scripts
,但是我没有运气。 Is there something I'm missing? 有什么我想念的吗? More importantly, where is all the packagemaker documentation?
更重要的是,打包程序的所有文档在哪里? How can I get my Python script to run?
如何使我的Python脚本运行? The only thing I've seen is this , which is way outdated and doesn't cover the command line version.
我唯一看到的是this ,它已经过时了,没有涵盖命令行版本。
I don't want to use the GUI; 我不想使用GUI。 it makes my life too difficult.
这使我的生活太困难了。
I've resolved this issue. 我已经解决了这个问题。
postflight
and have a proper shebang line. postflight
并具有适当的shebang行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.