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
parent 00e9e69c2a
commit 3dfd1ed8af
6 changed files with 8 additions and 8 deletions

View file

@ -188,7 +188,7 @@ conf.set_quoted('SCRCPY_VERSION', meson.project_version())
# the prefix used during configuration (meson --prefix=PREFIX)
conf.set_quoted('PREFIX', get_option('prefix'))
# build a "portable" version (with scrcpy-server accessible from the same
# build a "portable" version (with scrcpy-server.apk accessible from the same
# directory as the executable)
conf.set('PORTABLE', get_option('portable'))

View file

@ -14,10 +14,10 @@
#include "util/process_intr.h"
#include "util/str.h"
#define SC_SERVER_FILENAME "scrcpy-server"
#define SC_SERVER_FILENAME "scrcpy-server.apk"
#define SC_SERVER_PATH_DEFAULT PREFIX "/share/scrcpy/" SC_SERVER_FILENAME
#define SC_DEVICE_SERVER_PATH "/data/local/tmp/scrcpy-server.jar"
#define SC_DEVICE_SERVER_PATH "/data/local/tmp/scrcpy-server.apk"
static char *
get_server_path(void) {

2
run
View file

@ -21,5 +21,5 @@ then
fi
SCRCPY_ICON_PATH="app/data/icon.png" \
SCRCPY_SERVER_PATH="$BUILDDIR/server/scrcpy-server" \
SCRCPY_SERVER_PATH="$BUILDDIR/server/scrcpy-server.apk" \
"$BUILDDIR/app/scrcpy" "$@"

View file

@ -21,7 +21,7 @@ BUILD_TOOLS_DIR="$ANDROID_HOME/build-tools/$BUILD_TOOLS"
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 {