monero: add plist (#35854)
This commit is contained in:
parent
92294875fd
commit
de01380c4f
1 changed files with 21 additions and 0 deletions
|
@ -40,6 +40,27 @@ class Monero < Formula
|
|||
rm_rf include/"miniupnpc"
|
||||
end
|
||||
|
||||
plist_options :manual => "monerod"
|
||||
|
||||
def plist; <<~EOS
|
||||
<?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>#{plist_name}</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>#{opt_bin}/monerod</string>
|
||||
<string>--non-interactive</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
cmd = "yes '' | #{bin}/monero-wallet-cli --restore-deterministic-wallet " \
|
||||
"--password brew-test --restore-height 1 --generate-new-wallet wallet " \
|
||||
|
|
Loading…
Reference in a new issue