Update generate_tdapi_java_file.sh

This commit is contained in:
Andrea Cavalli 2020-10-11 00:24:07 +02:00
parent 5a9f0f0270
commit ab55cfec89

View File

@ -61,10 +61,10 @@ cp -r ./src/main/jni-java-src ./generated/src/main/jni-java-src
# Copy executables
echo "Copying executables..."
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
cp $(realpath -m ../td_tools/td/generate/Debug/td_generate_java_api.exe) $(realpath -m ../td_tools/td/generate/Debug/td_generate_java_api)
export TD_GENERATED_BINARIES_DIR=$(realpath -m ../td_tools/td/generate/Debug)
cp $(realpath -m ./generated/td_tools/td/generate/Debug/td_generate_java_api.exe) $(realpath -m ./generated/td_tools/td/generate/Debug/td_generate_java_api)
export TD_GENERATED_BINARIES_DIR=$(realpath -m ./generated/td_tools/td/generate/Debug)
else
export TD_GENERATED_BINARIES_DIR=$(realpath -m ../td_tools/td/generate)
export TD_GENERATED_BINARIES_DIR=$(realpath -m ./generated/td_tools/td/generate)
fi