Remove scripts to compile android custom app.

This commit is contained in:
Matthieu Gautier
2019-07-24 11:52:57 +02:00
committed by Kelson
parent d4b2642eed
commit d2e6b2a916
8 changed files with 0 additions and 583 deletions

View File

@ -1,13 +0,0 @@
#!/usr/bin/env bash
set -e
cd ${HOME}
${TRAVIS_BUILD_DIR}/kiwix-build.py \
--target-platform $PLATFORM \
--hide-progress \
--android-custom-app $CUSTOM_APP \
--zim-file-size $ZIM_FILE_SIZE \
kiwix-android-custom

View File

@ -1,26 +0,0 @@
#!/usr/bin/env bash
set -e
KEYSTORE_FILE=${TRAVIS_BUILD_DIR}/travis/kiwix-android.keystore
GOOGLE_API_KEY=${TRAVIS_BUILD_DIR}/travis/googleplay_android_developer-5a411156212c.json
cd ${HOME}
# Sign apk file
BASE_DIR="BUILD_${PLATFORM}"
INPUT_APK_FILE=${BASE_DIR}/kiwix-android-custom_${CUSTOM_APP}/app/build/outputs/apk/${CUSTOM_APP}/release/app-${CUSTOM_APP}-release-unsigned.apk
SIGNED_APK=${BASE_DIR}/app-${CUSTOM_APP}_${VERSION_CODE}-release-signed.apk
TOOLCHAINS/android-sdk-r25.2.3/build-tools/25.0.2/apksigner sign \
--ks ${KEYSTORE_FILE} \
--ks-pass env:KEYSTORE_PASS \
--out ${SIGNED_APK} \
${INPUT_APK_FILE}
ssh -i ${SSH_KEY} ci@download.kiwix.org "mkdir -p ${DEPLOY_DIR}"
scp -i ${SSH_KEY} \
${SIGNED_APK} \
ci@download.kiwix.org:${DEPLOY_DIR}

Binary file not shown.

View File

@ -1,26 +0,0 @@
#!/usr/bin/env bash
set -e
KEYSTORE_FILE=${TRAVIS_BUILD_DIR}/travis/test_ks.ks
GOOGLE_API_KEY=${TRAVIS_BUILD_DIR}/travis/googleplay_android_developer-5a411156212c.json
cd ${HOME}
BASE_DIR="BUILD_${PLATFORM}"
mkdir -p ${HOME}/APKS
scp -i ${SSH_KEY} ci@download.kiwix.org:${DEPLOY_DIR}/* ${HOME}/APKS
ssh -i ${SSH_KEY} ci@download.kiwix.org "rm -rf ${DEPLOY_DIR}"
${TRAVIS_BUILD_DIR}/build_custom_app.py \
--step publish \
--custom-app ${CUSTOM_APP} \
--package-name ${PACKAGE_NAME} \
--google-api-key ${GOOGLE_API_KEY} \
--zim-url ${ZIM_URL} \
--apks-dir ${HOME}/APKS \
--content-version-code ${CONTENT_VERSION_CODE}