diff options
| author | Lena <lena@omega> | 2026-01-01 00:00:00 +0000 |
|---|---|---|
| committer | Lena <lena@omega> | 2026-06-24 22:14:50 +0300 |
| commit | eb0c8951196c637e44daf3c0617b131b997d5d2c (patch) | |
| tree | 2f83b6a41cee745467e53fc401942b82cea286ea /scripts/check-wrapper | |
| download | scrcpy-android-eb0c8951196c637e44daf3c0617b131b997d5d2c.tar.gz | |
scrcpy-android: mirror an Android device over wireless ADB0.1
Native Java app for Android 12+ that mirrors another Android
device over wireless ADB, forwarding video, audio, touch input,
and clipboard. Bundles a pinned scrcpy-server.jar and the
vendored libadb-android stack. Supports h264/h265/av1 video and
raw/opus audio with in-app codec selection. No NDK, no Kotlin.
Includes JVM unit tests and a Docker-based emulator e2e rig.
Diffstat (limited to 'scripts/check-wrapper')
| -rwxr-xr-x | scripts/check-wrapper | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/check-wrapper b/scripts/check-wrapper new file mode 100755 index 0000000..31531b6 --- /dev/null +++ b/scripts/check-wrapper @@ -0,0 +1,24 @@ +#!/bin/sh +# Verify the checked-in gradle-wrapper.jar matches the expected SHA-256. +# Catches accidental swaps or supply-chain mischief. + +set -eu + +cd "$(git rev-parse --show-toplevel)" + +WRAPPER='gradle/wrapper/gradle-wrapper.jar' +EXPECTED_FILE="$WRAPPER.sha256" + +if [ ! -f "$WRAPPER" ]; then + echo "check-wrapper: $WRAPPER is missing" >&2 + exit 1 +fi +if [ ! -f "$EXPECTED_FILE" ]; then + echo "check-wrapper: $EXPECTED_FILE is missing" >&2 + exit 1 +fi + +# sha256sum reads its first column from the .sha256 sidecar; the second +# column ('gradle-wrapper.jar') is informational. +( cd "$(dirname "$WRAPPER")" && sha256sum -c "$(basename "$EXPECTED_FILE")" >/dev/null ) +echo "check-wrapper: ok" |