From 7fd800d58324a3f7520e9b225a9860ac5c712708 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 18 Nov 2019 14:30:21 +0100 Subject: [PATCH] Generate VERSION_NAME in build_without_gradle.sh Since commit b963a3b9d56f744cceba2e19cba3f9fef858c058, the server uses BuildConfig.VERSION_NAME. Generate this field manually for building without gradle. --- server/build_without_gradle.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/build_without_gradle.sh b/server/build_without_gradle.sh index daf85008..d1581ea1 100755 --- a/server/build_without_gradle.sh +++ b/server/build_without_gradle.sh @@ -11,6 +11,8 @@ set -e +SCRCPY_VERSION_NAME=1.10 + PLATFORM=${ANDROID_PLATFORM:-29} BUILD_TOOLS=${ANDROID_BUILD_TOOLS:-29.0.2} @@ -31,6 +33,7 @@ package com.genymobile.scrcpy; public final class BuildConfig { public static final boolean DEBUG = false; + public static final String VERSION_NAME = "$SCRCPY_VERSION_NAME"; } EOF