- overide app/script.sh with terminal install instructions.
- This repository can be found at https://github.com/MichaelDimmitt/mac_plist_launch_agent/
-
git clone your_project.git
-
cd your_project
-
git clone https://github.com/MichaelDimmitt/mac_plist_launch_agent.git
-
cd mac_plist_launch_agent
-
./app/install_driver.sh
-
./app/uninstall_driver.sh
-
now, modify script file to run your application from current DIR/../ to access your app.
Only for Macintosh Computers, enjoy. Make an application or a script a launch agent.
Simple example of a mac app launch agent. People can use as a template.
Starts and Stops via different bash scripts.
Launch Agents do not immediately provide output
to where a programmer can immediately see hello world.
install_driver... sets the plist up and runs.
- ./mac_plist_launch_agent/app/install_driver.sh
- ./mac_plist_launch_agent/app/uninstall_driver.sh
- overide app/script.sh with terminal install instructions.
app/install_driver allows plist to know your repo location
app/install_driver script gathers "pwd" and injects it into the plist
then install driver gives permission moves to standard location and runs.
uses launchctl...
https://nathangrigg.com/2012/07/schedule-jobs-using-launchd
https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man5/launchd.plist.5.html
project abstracted from:
https://github.com/MichaelDimmitt/Aerial_Desktop