mirror of
https://github.com/Genymobile/scrcpy
synced 2024-12-22 15:13:17 +00:00
3da95b52bd
The server name ending with .jar has several drawbacks: - meson requires the jar executable to attempt to modify it: <https://github.com/Genymobile/scrcpy/issues/404#issuecomment-456065923> <https://github.com/mesonbuild/meson/issues/4844> - meson warns during "ninja install" <https://github.com/Genymobile/scrcpy/issues/458> - some users try to execute it on the computer as a java executable Removing the extension solves all these problems.
24 lines
513 B
Bash
Executable File
24 lines
513 B
Bash
Executable File
#!/bin/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_SERVER_PATH="$BUILDDIR/server/scrcpy-server" "$BUILDDIR/app/scrcpy" "$@"
|