<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
  LaunchDaemon for streamdeck-go-helper (privileged root daemon).
  Installed to: /Library/LaunchDaemons/com.woodarddigital.streamdeck-go-helper.plist
  Requires: sudo

  Manage with:
    sudo launchctl load   /Library/LaunchDaemons/com.woodarddigital.streamdeck-go-helper.plist
    sudo launchctl unload /Library/LaunchDaemons/com.woodarddigital.streamdeck-go-helper.plist
    tail -f /var/log/streamdeck-go-helper.log

  The binary path below is set by install.sh at install time.
-->
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.woodarddigital.streamdeck-go-helper</string>

    <key>ProgramArguments</key>
    <array>
        <string>STREAMDECK_HELPER_BINARY_PATH</string>
    </array>

    <!-- Start automatically at boot (runs as root via LaunchDaemons). -->
    <key>RunAtLoad</key>
    <true/>

    <!-- Restart automatically if the process exits. -->
    <key>KeepAlive</key>
    <true/>

    <key>StandardOutPath</key>
    <string>/var/log/streamdeck-go-helper.log</string>
    <key>StandardErrorPath</key>
    <string>/var/log/streamdeck-go-helper.log</string>
</dict>
</plist>
