Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e6ca12

Browse files
committed
my exec_root could be node-webkit Helper.app
specifically, "src/out/Release/node-webkit.app/Contents/Frameworks/node-webkit Helper.app/Contents/MacOS/node-webkit"
1 parent 533cb0d commit 9e6ca12

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/automatic_tests/start_app/script.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ if (os.platform() == 'linux') {
3636
}
3737
if (os.platform() == 'darwin') {
3838
required_file = required_file_macox;
39+
if (~exec_root.indexOf("Helper.app"))
40+
exec_root = path.join(exec_root, '..', '..', '..')
3941
exec_root = path.normalize(
4042
path.join(exec_root, '..', '..', '..'));
4143
}

0 commit comments

Comments
 (0)