1
0
mirror of https://github.com/Genymobile/scrcpy synced 2024-12-26 09:02:16 +00:00
scrcpy/run
Romain Vimont 6004f0b6b0 Use a new scrcpy icon
Use the new icon designed by @varlesh:
<https://github.com/Genymobile/scrcpy/pull/1987#issuecomment-949684080>

Load it from a PNG file (SDL only supports bitmap icons).
2021-10-25 18:08:37 +02:00

26 lines
558 B
Bash
Executable File

#!/usr/bin/env bash
# Run scrcpy generated in the specified BUILDDIR.
#
# This provides the same feature as "ninja run", except that it is possible to
# pass arguments to scrcpy.
#
# Syntax: ./run BUILDDIR <scrcpy options ...>
if [[ $# = 0 ]]
then
echo "Syntax: $0 BUILDDIR <scrcpy options>" >&2
exit 1
fi
BUILDDIR="$1"
shift
if [[ ! -d "$BUILDDIR" ]]
then
echo "The build dir \"$BUILDDIR\" does not exist." >&2
exit 1
fi
SCRCPY_ICON_PATH="data/icon.png" \
SCRCPY_SERVER_PATH="$BUILDDIR/server/scrcpy-server" \
"$BUILDDIR/app/scrcpy" "$@"