OSX Mac App Store:如何安装守护进程 shell 脚本
我想为 Mac App Store 编写一个涉及安装守护程序的应用程序。守护进程可以是一个非常简单的“Hello World”shell 脚本,可以使用 Bourne shell 或 Python。它应该在每次机器启动时自动运行。
我尝试使用 packagemaker
安装脚本,但始终无法完全弄清楚(后来了解到 packagemaker 无论如何都与 App Store 不兼容)。
有没有办法安装 shell 脚本,以便它在 Mac App Store 应用程序重新启动时自动运行?
I'd like to write an app for the Mac App Store that involves installing a daemon. The daemon can be a dead-simple "Hello World" shell script, in either Bourne shell or Python. It should run automatically each time the machine boots.
I tried to get the script installed using packagemaker
, but was never able to quite figure it out (and then later learned that packagemaker was not compatible with the App Store anyway).
Is there a way to install a shell script, such that it runs automatically on reboot for Mac App Store apps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不相信 Mac App Store 应用程序可以运行后台进程。这是此处引用的示例(我还没有阅读技术指南)。
I don't believe Mac App Store applications are allowed to run background processes. That's cited here, as an example (I have not read the technical guidelines).
政策可能的变化/灵活性:
http://itunes.apple.com/ca/app/wlancontroller/id415633950 ?mt=12
似乎几乎是一个后台应用程序,它将数据发送到具有 Web 界面的中央服务器。
我没想到这会被接受,但它已经被接受了。
Possible change/flexibility in policy:
http://itunes.apple.com/ca/app/wlancontroller/id415633950?mt=12
Seems to be almost a background app, which sends data to a central server that has a web interface.
I would not have expected this to be accepted, but it has.