Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Commit

Permalink
Add node path to powd script
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Nov 14, 2011
1 parent b53ad40 commit d922567
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
8 changes: 6 additions & 2 deletions lib/templates/installer/cx.pow.powd.plist.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ module.exports = function(__obj) {
return _safe(result);
};

_print(_safe('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n\t<key>Label</key>\n\t<string>cx.pow.powd</string>\n\t<key>ProgramArguments</key>\n\t<array>\n <string>'));
_print(_safe('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n <key>Label</key>\n <string>cx.pow.powd</string>\n <key>ProgramArguments</key>\n <array>\n <string>'));

_print(process.execPath);

_print(_safe('</string>\n <string>'));

_print(this.bin);

_print(_safe('</string>\n\t</array>\n\t<key>KeepAlive</key>\n\t<true/>\n\t<key>RunAtLoad</key>\n\t<true/>\n</dict>\n</plist>\n'));
_print(_safe('</string>\n </array>\n <key>KeepAlive</key>\n <true/>\n <key>RunAtLoad</key>\n <true/>\n</dict>\n</plist>\n'));

return __out.join('');
}).call((function() {
Expand Down
21 changes: 11 additions & 10 deletions src/templates/installer/cx.pow.powd.plist.eco
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
<!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>cx.pow.powd</string>
<key>ProgramArguments</key>
<array>
<string><%= @bin %></string>
</array>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>Label</key>
<string>cx.pow.powd</string>
<key>ProgramArguments</key>
<array>
<string><%= process.execPath %></string>
<string><%= @bin %></string>
</array>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>

0 comments on commit d922567

Please sign in to comment.