refactor: Simplify launch daemon configuration for helper service

This commit is contained in:
ezequielnick 2025-02-14 11:53:43 +08:00
parent 81bb2c44e0
commit 4b238d4dc2

View File

@ -42,19 +42,12 @@ cat << EOF > "$LAUNCH_DAEMON"
<dict> <dict>
<key>Label</key> <key>Label</key>
<string>party.mihomo.helper</string> <string>party.mihomo.helper</string>
<key>MachServices</key> <key>AssociatedBundleIdentifiers</key>
<dict> <string>party.mihomo.app</string>
<key>party.mihomo.helper</key>
<true/>
</dict>
<key>KeepAlive</key> <key>KeepAlive</key>
<true/> <true/>
<key>Program</key> <key>Program</key>
<string>${HELPER_PATH}</string> <string>${HELPER_PATH}</string>
<key>ProgramArguments</key>
<array>
<string>${HELPER_PATH}</string>
</array>
<key>StandardErrorPath</key> <key>StandardErrorPath</key>
<string>/tmp/party.mihomo.helper.err</string> <string>/tmp/party.mihomo.helper.err</string>
<key>StandardOutPath</key> <key>StandardOutPath</key>