Skip to content

Commit

Permalink
fix: deeplx homebrew verison
Browse files Browse the repository at this point in the history
  • Loading branch information
missuo committed Jul 1, 2023
1 parent e89fe69 commit 0d0895f
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions Formula/deeplx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,32 @@ def install

def plist
<<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.deeplx</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/Cellar/deeplx/0.8.0/bin/deeplx</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>WorkingDirectory</key>
<string>/opt/homebrew/var/run/deeplx</string>
<key>StandardOutPath</key>
<string>/opt/homebrew/var/log/deeplx/deeplx.log</string>
<key>StandardErrorPath</key>
<string>/opt/homebrew/var/log/deeplx/deeplx.log</string>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
Expand All @@ -28,16 +54,6 @@ def plist
<key>ProgramArguments</key>
<array>
<string>#{bin}/deeplx</string>
<string>--logging-level</string>
<string>info</string>
<string>--logging-file</string>
<string>#{var}/log/deeplx/deeplx.log</string>
<string>--storage-dbfile</string>
<string>#{var}/run/deeplx/deeplx.db</string>
<string>--plugins-dir</string>
<string>#{etc}/deeplx/plugins</string>
<string>--security-secret-key</string>
<string>secret</string>
</array>
<key>RunAtLoad</key>
<true/>
Expand Down

0 comments on commit 0d0895f

Please sign in to comment.