Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add node path to powd script

  • Loading branch information...
commit d922567bcebc3743eb85aa4c87d123eae3506a3c 1 parent b53ad40
@josh josh authored
View
8 lib/templates/installer/cx.pow.powd.plist.js
@@ -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() {
View
21 src/templates/installer/cx.pow.powd.plist.eco
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.