File tree 4 files changed +27
-2
lines changed
4 files changed +27
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ DEVTOOLS_PORT=0
4
+ CONFIG=app.json
5
+
6
+ for var in " $@ "
7
+ do
8
+ if [[ $var == --remote-debugging-port* ]] ;
9
+ then
10
+ DEVTOOLS_PORT=${var#* =}
11
+ echo " devtools_port=$DEVTOOLS_PORT "
12
+ fi
13
+
14
+ if [[ $var == --config* ]] ;
15
+ then
16
+ CONFIG=${var#* =}
17
+ echo " startup_url==$CONFIG "
18
+ fi
19
+ done
20
+
21
+ openfin -l -c $CONFIG -p $DEVTOOLS_PORT
22
+
Original file line number Diff line number Diff line change 5
5
"use strict" ;
6
6
7
7
module . exports = ( function ( ) {
8
+ var isWinOS = ( process . platform == 'win32' ) ;
9
+ var launch_target = isWinOS ? 'RunOpenFin.bat' : './RunOpenFin.sh' ;
10
+ var launch_config = isWinOS ? 'http://localhost:8000/app.json' : './test/app.json' ;
8
11
var config = {
9
12
desiredCapabilities : {
10
13
browserName : 'chrome' ,
11
14
chromeOptions : {
12
15
extensions : [ ] ,
13
- binary : 'RunOpenFin.bat' ,
14
- args : [ '--config=http://localhost:8000/app.json' ]
16
+ binary : launch_target ,
17
+ args : [ '--config=' + launch_config ]
15
18
}
16
19
} ,
17
20
remoteDriverHost : "localhost" ,
You can’t perform that action at this time.
0 commit comments