After days of trail, I've successfully made my application a background daemon by adding a post install script: https://github.com/burningtnt/Terracotta/blob/master/build/macos/scripts/postinstall
However, this will write a file in /Library/LaunchAgents/, and it cannot be deleted while uninstalling my application. Any solution to address this?
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: