Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryangball/launchd-package-creator
A utility that allows you to easily create a .pkg containing a LaunchDaemon or LaunchAgent, and a target script of your choosing.
https://github.com/ryangball/launchd-package-creator
launchagent launchd launchdaemon pkg swift
Last synced: about 2 months ago
JSON representation
A utility that allows you to easily create a .pkg containing a LaunchDaemon or LaunchAgent, and a target script of your choosing.
- Host: GitHub
- URL: https://github.com/ryangball/launchd-package-creator
- Owner: ryangball
- Created: 2019-05-20T21:11:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-17T19:51:54.000Z (over 5 years ago)
- Last Synced: 2024-08-01T16:56:04.456Z (5 months ago)
- Topics: launchagent, launchd, launchdaemon, pkg, swift
- Language: Swift
- Homepage:
- Size: 1.62 MB
- Stars: 109
- Watchers: 11
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#
launchd Package Creator
A utility that allows you to easily create a .pkg containing a LaunchDaemon or LaunchAgent, and a target script of your choosing. The target script can also be packaged, so nothing else is required on the Mac the package is installed on.Alternatively, you can create a .pkg with only the launchd files included, which can be installed on a Mac where the target script/app already exists.
You may also export a configured launchd plist which you can use in any way you see fit.
## Usage
1. Install the latest [release](https://github.com/ryangball/launchd-package-creator/releases/latest)
2. Select the launchd type (daemon/agent)
3. Input an indentifier (reverse domain name notation is typical)
4. Input a version
5. Select a Target script/app
6. Choose to package the Target (or not)
7. Select your options (more to come)
8. Click the "Create PKG" button to create a package of the launchd item and target script/app
9. TEST## Notes
- When creating a LaunchAgent (which runs as the user) **and** selecting the StandardOutPath and StandardErrorPath options, you should be mindful as to whether or not the user has access to write to the chosen path/file. Daemons might not have this limitation, as they are run as root (when using this utility).
- When targeting a GUI application (.app) it is recommended to use a LaunchAgent with LimitLoadToSessionType: Aqua. This will run as the user once they are logged in.
## Issues and Feature Requests
Please [create an issue](https://github.com/ryangball/launchd-package-creator/issues) for both issues encountered and for feature requests (like additional options that might be useful) or [create a PR](https://github.com/ryangball/launchd-package-creator/pulls).