OSX Mac App Store: how to install a daemon shell script

拈花ヽ惹草 提交于 2019-12-11 04:26:55

问题


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?


回答1:


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).




回答2:


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.



来源:https://stackoverflow.com/questions/4702160/osx-mac-app-store-how-to-install-a-daemon-shell-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!