diff options
| author | Joseph Henry <[email protected]> | 2023-07-20 10:31:06 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-20 10:31:06 -0700 |
| commit | ca83e941a4bf41d6ddc936eaf3183839320f55ff (patch) | |
| tree | d744ad6684d6045ba5c9771ff92bafbd1340ecaf | |
| parent | e0200fbde00130aa1d0d61fa1fdcd717ec83af70 (diff) | |
| parent | fd000261d6f9208a85aac36131aecf485813dce8 (diff) | |
Merge pull request #230 from zerotier/brenton/fix-no-such-file-or-directory-error
fix 'No such file or directory' error
| -rwxr-xr-x | build.sh | 2 | ||||
| -rw-r--r-- | pkg/android/app/build.gradle | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -603,7 +603,7 @@ android-aar() CMAKE_FLAGS="-D${CMAKE_SWITCH}=1 -D${CMAKE_SWITCH}=ON" cd $ANDROID_PKG_PROJ_DIR ./gradlew $GRADLE_ARGS assemble$UPPERCASE_BUILD_TYPE # assembleRelease / assembleDebug - cp $ANDROID_PKG_PROJ_DIR/app/build/outputs/aar/*.aar \ + cp $ANDROID_PKG_PROJ_DIR/app/build/outputs/aar/libzt-$BUILD_TYPE.aar \ $PKG_OUTPUT_DIR/libzt-$BUILD_TYPE.aar cd - echo -e "\n - Build cache : $CACHE_DIR\n - Build output : $BUILD_OUTPUT_DIR\n" diff --git a/pkg/android/app/build.gradle b/pkg/android/app/build.gradle index 0c78c42..06c81eb 100644 --- a/pkg/android/app/build.gradle +++ b/pkg/android/app/build.gradle @@ -46,6 +46,12 @@ android { } } } + + android.libraryVariants.all { variant -> + variant.outputs.all { file -> + file.outputFileName = "libzt-${variant.buildType.name}.aar" + } + } } dependencies { |
