chore: improve screenshot scripts
This commit is contained in:
parent
42bf5c5995
commit
21495617bb
4 changed files with 8 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -95,3 +95,5 @@ android/app/google-services.json
|
|||
!ios/AlerteSecours/GoogleService-Info.example.plist
|
||||
!ios/AlerteSecours/Supporting/Expo.example.plist
|
||||
!android/app/google-services.example.json
|
||||
|
||||
screenshot-*.png
|
|
@ -45,8 +45,8 @@
|
|||
"open:deeplink:android": "yarn open:deeplink --android",
|
||||
"open:deeplink:ios": "yarn open:deeplink --ios",
|
||||
"open:deeplink": "npx uri-scheme open --android",
|
||||
"screenshot:ios": "xcrun simctl io booted screenshot ~/Desktop/sim-screen.png",
|
||||
"screenshot:android": "adb exec-out screencap -p > emulator-screen.png"
|
||||
"screenshot:ios": "scripts/screenshot-ios.sh",
|
||||
"screenshot:android": "scripts/screenshot-android.sh"
|
||||
},
|
||||
"customExpoVersioning": {
|
||||
"versionCode": 177,
|
||||
|
|
2
scripts/screenshot-android.sh
Executable file
2
scripts/screenshot-android.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
exec adb -s $DEVICE exec-out screencap -p > screenshot-emulator-$(date +%s).png
|
2
scripts/screenshot-ios.sh
Executable file
2
scripts/screenshot-ios.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
exec xcrun simctl io booted screenshot ~/Desktop/screenshot-sim-$(date +%s).png
|
Loading…
Add table
Reference in a new issue