47 lines
1.4 KiB
Django/Jinja
47 lines
1.4 KiB
Django/Jinja
|
|
<?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">
|
||
|
|
<plist version="1.0">
|
||
|
|
<dict>
|
||
|
|
<key>Label</key>
|
||
|
|
<string>com.a13labs.opencode</string>
|
||
|
|
|
||
|
|
<key>UserName</key>
|
||
|
|
<string>{{ macos_dev_station_service_user }}</string>
|
||
|
|
|
||
|
|
<key>WorkingDirectory</key>
|
||
|
|
<string>{{ macos_dev_station_workspace_dir }}</string>
|
||
|
|
|
||
|
|
<key>ProgramArguments</key>
|
||
|
|
<array>
|
||
|
|
<string>/bin/bash</string>
|
||
|
|
<string>{{ macos_dev_station_scripts_dir }}/start-opencode.sh</string>
|
||
|
|
</array>
|
||
|
|
|
||
|
|
<key>RunAtLoad</key>
|
||
|
|
<true/>
|
||
|
|
|
||
|
|
<key>KeepAlive</key>
|
||
|
|
<true/>
|
||
|
|
|
||
|
|
<key>StandardOutPath</key>
|
||
|
|
<string>{{ macos_dev_station_logs_dir }}/opencode.log</string>
|
||
|
|
|
||
|
|
<key>StandardErrorPath</key>
|
||
|
|
<string>{{ macos_dev_station_logs_dir }}/opencode.err.log</string>
|
||
|
|
|
||
|
|
<key>EnvironmentVariables</key>
|
||
|
|
<dict>
|
||
|
|
<key>PATH</key>
|
||
|
|
<string>{{ macos_dev_station_path }}</string>
|
||
|
|
<key>OPENCODE_SERVER_USERNAME</key>
|
||
|
|
<string>{{ macos_dev_station_opencode_server_username }}</string>
|
||
|
|
<key>OPENCODE_SERVER_PASSWORD</key>
|
||
|
|
<string>{{ macos_dev_station_opencode_server_password }}</string>
|
||
|
|
{% for env_key, env_value in macos_dev_station_opencode_extra_environment.items() %}
|
||
|
|
<key>{{ env_key }}</key>
|
||
|
|
<string>{{ env_value }}</string>
|
||
|
|
{% endfor %}
|
||
|
|
</dict>
|
||
|
|
</dict>
|
||
|
|
</plist>
|