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:
parent
1d97d7213d
commit
7fd800d583
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
SCRCPY_VERSION_NAME=1.10
|
||||||
|
|
||||||
PLATFORM=${ANDROID_PLATFORM:-29}
|
PLATFORM=${ANDROID_PLATFORM:-29}
|
||||||
BUILD_TOOLS=${ANDROID_BUILD_TOOLS:-29.0.2}
|
BUILD_TOOLS=${ANDROID_BUILD_TOOLS:-29.0.2}
|
||||||
|
|
||||||
|
@ -31,6 +33,7 @@ package com.genymobile.scrcpy;
|
||||||
|
|
||||||
public final class BuildConfig {
|
public final class BuildConfig {
|
||||||
public static final boolean DEBUG = false;
|
public static final boolean DEBUG = false;
|
||||||
|
public static final String VERSION_NAME = "$SCRCPY_VERSION_NAME";
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue