Przeglądaj źródła

show sim before recording

Daniel Zlotin 7 lat temu
rodzic
commit
dc31a6b871
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1
    0
      scripts/test.e2e.ios.js

+ 1
- 0
scripts/test.e2e.ios.js Wyświetl plik

16
 }
16
 }
17
 
17
 
18
 function startRecording() {
18
 function startRecording() {
19
+  exec.execAsync(`open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app`);
19
   const screenId = exec.execSyncRead(`ffmpeg -f avfoundation -list_devices true -i "" 2>&1 | grep "Capture screen 0" | sed -e "s/.*\\[//" -e "s/\\].*//"`);
20
   const screenId = exec.execSyncRead(`ffmpeg -f avfoundation -list_devices true -i "" 2>&1 | grep "Capture screen 0" | sed -e "s/.*\\[//" -e "s/\\].*//"`);
20
   exec.execAsync(`ffmpeg -f avfoundation -i "${screenId}:none" out.avi`);
21
   exec.execAsync(`ffmpeg -f avfoundation -i "${screenId}:none" out.avi`);
21
 }
22
 }