Rename server to scrcpy-server.apk

This will allow to install it.
This commit is contained in:
Romain Vimont 2022-06-10 14:53:41 +02:00
commit a9884efce2
6 changed files with 8 additions and 8 deletions

View file

@ -20,7 +20,7 @@ BUILD_TOOLS=${ANDROID_BUILD_TOOLS:-31.0.0}
BUILD_DIR="$(realpath ${BUILD_DIR:-build_manual})"
CLASSES_DIR="$BUILD_DIR/classes"
SERVER_DIR=$(dirname "$0")
SERVER_BINARY=scrcpy-server
SERVER_BINARY=scrcpy-server.apk
ANDROID_JAR="$ANDROID_HOME/platforms/android-$PLATFORM/android.jar"
echo "Platform: android-$PLATFORM"

View file

@ -6,7 +6,7 @@ if prebuilt_server == ''
# gradle is responsible for tracking source changes
build_by_default: true,
build_always_stale: true,
output: 'scrcpy-server',
output: 'scrcpy-server.apk',
command: [find_program('./scripts/build-wrapper.sh'), meson.current_source_dir(), '@OUTPUT@', get_option('buildtype')],
console: true,
install: true,
@ -18,7 +18,7 @@ else
endif
custom_target('scrcpy-server-prebuilt',
input: prebuilt_server,
output: 'scrcpy-server',
output: 'scrcpy-server.apk',
command: ['cp', '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: 'share/scrcpy')

View file

@ -16,7 +16,7 @@ import java.io.IOException;
*/
public final class CleanUp {
public static final String SERVER_PATH = "/data/local/tmp/scrcpy-server.jar";
public static final String SERVER_PATH = "/data/local/tmp/scrcpy-server.apk";
// A simple struct to be passed from the main process to the cleanup process
public static class Config implements Parcelable {