Skip to content

Commit

Permalink
libwebrtc.aar の取得先を shiguredo-webrtc-build/webrtc-build に変更する
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Feb 1, 2024
1 parent 05ee2f5 commit 1baca08
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions prepareAar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,35 @@

set -e

VERSION=119.6045.2.1
VERSION=m119.6045.2.1

## このリポジトリ的にメンテナンス番号をふるときは ${VERSION}.1 などとする
RELEASE_VERSION=${VERSION}

AAR_URL=https://github.com/shiguredo/shiguredo-webrtc-android/releases/download/${VERSION}/libwebrtc.aar
WEBRTC_BUILD_ANDROID_RELEASE_URL=https://github.com/shiguredo-webrtc-build/webrtc-build/releases/download/${VERSION}/webrtc.android.tar.gz

echo VERSION=${VERSION}
echo RELEASE_VERSION=${RELEASE_VERSION}
echo AAR_URL=${AAR_URL}
echo WEBRTC_BUILD_ANDROID_RELEASE_URL=${WEBRTC_BUILD_ANDROID_RELEASE_URL}


TEMP_DIR=temp
BUILD_DIR=build
mkdir -p ${TEMP_DIR}
mkdir -p ${BUILD_DIR}
cd ${BUILD_DIR}

curl -L -O ${AAR_URL}

# TEMP_DIR で webrtc.android.tar.gz をダウンロードして libwebrtc.aar を取り出す
pushd ${TEMP_DIR}
curl -L -O ${WEBRTC_BUILD_ANDROID_RELEASE_URL}
tar -xzf webrtc.android.tar.gz webrtc/aar/libwebrtc.aar
mv webrtc/aar/libwebrtc.aar .
popd

# 取り出した libwebrtc.aar を BUILD_DIR にコピー
cp ${TEMP_DIR}/libwebrtc.aar ${BUILD_DIR}/

cd ${BUILD_DIR}

mvn install:install-file \
-Dfile=libwebrtc.aar \
Expand Down

0 comments on commit 1baca08

Please sign in to comment.