mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
Add a script to record the screen
This commit is contained in:
15
scripts/record_screen.sh
Executable file
15
scripts/record_screen.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
trap ctrl_c INT
|
||||
|
||||
function ctrl_c() {
|
||||
echo "To fetch the script run -"
|
||||
echo "adb pull /sdcard/video.mp4"
|
||||
echo "adb shell rm /sdcard/video.mp4"
|
||||
}
|
||||
|
||||
echo "Recording ..."
|
||||
adb shell screenrecord --verbose /sdcard/video.mp4
|
||||
|
Reference in New Issue
Block a user