浏览代码

Build command and paths also changed

inorichi 7 年之前
父节点
当前提交
abbe700dac
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      .travis/build.sh

+ 4 - 4
.travis/build.sh

@@ -3,18 +3,18 @@
 git fetch --unshallow #required for commit count
 git fetch --unshallow #required for commit count
 
 
 if [ -z "$TRAVIS_TAG" ]; then
 if [ -z "$TRAVIS_TAG" ]; then
-    ./gradlew clean buildStandardDebug
+    ./gradlew clean assembleStandardDebug
 
 
     COMMIT_COUNT=$(git rev-list --count HEAD)
     COMMIT_COUNT=$(git rev-list --count HEAD)
     export ARTIFACT="tachiyomi-r${COMMIT_COUNT}.apk"
     export ARTIFACT="tachiyomi-r${COMMIT_COUNT}.apk"
 
 
-    mv app/build/outputs/apk/app-standard-debug.apk $ARTIFACT
+    mv app/build/outputs/apk/standard/debug/app-standard-debug.apk $ARTIFACT
 else
 else
-    ./gradlew clean buildStandardRelease
+    ./gradlew clean assembleStandardRelease
 
 
     TOOLS="${ANDROID_HOME}/build-tools/26.0.1"
     TOOLS="${ANDROID_HOME}/build-tools/26.0.1"
     export ARTIFACT="tachiyomi-${TRAVIS_TAG}.apk"
     export ARTIFACT="tachiyomi-${TRAVIS_TAG}.apk"
 
 
-    ${TOOLS}/zipalign -v -p 4 app/build/outputs/apk/app-standard-release-unsigned app-aligned.apk
+    ${TOOLS}/zipalign -v -p 4 app/build/outputs/apk/standard/release/app-standard-release-unsigned app-aligned.apk
     ${TOOLS}/apksigner sign --ks $STORE_PATH --ks-key-alias $STORE_ALIAS --ks-pass env:STORE_PASS --key-pass env:KEY_PASS --out $ARTIFACT app-aligned.apk
     ${TOOLS}/apksigner sign --ks $STORE_PATH --ks-key-alias $STORE_ALIAS --ks-pass env:STORE_PASS --key-pass env:KEY_PASS --out $ARTIFACT app-aligned.apk
 fi
 fi