Generate VERSION_NAME in build_without_gradle.sh

Since commit b963a3b9d5, the server uses
BuildConfig.VERSION_NAME.

Generate this field manually for building without gradle.
This commit is contained in:
Romain Vimont 2019-11-18 14:30:21 +01:00
parent 1d97d7213d
commit 7fd800d583

View file

@ -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