[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

RxReader/tencentcloud-legu

Repository files navigation

tencentcloud-legu

Docker Pulls License

官网工具 - 移动安全-应用加固命令行工具jar包使用说明

libraries

腾讯云

usage

  • java
java -jar legu/build/libs/legu-all.jar -version
java -jar legu/build/libs/legu-all.jar -help
java -jar legu/build/libs/legu-all.jar configure -secretId $TENCENT_SECRET_ID -secretKey $TENCENT_SECRET_KEY -region $TENCENT_REGION
java -jar legu/build/libs/legu-all.jar legu -in legu/apk/*.apk -out legu/apk/
  • docker
docker run --rm -it -v ${PWD}/legu:/legu alpine:3.9.2 sh -c "mkdir /legu/apk && wget ${TEST_APK_URL} -P /legu/apk"
  • drone
- name: legu-tencent
  image: v7lin/legu
  environment:
    TENCENT_SECRET_ID:
      from_secret: TENCENT_SECRET_ID
    TENCENT_SECRET_KEY:
      from_secret: TENCENT_SECRET_KEY
    TENCENT_REGION:
      from_secret: TENCENT_REGION
  commands:
  - echo "腾讯乐固"
  - java -jar /legu/legu-all.jar -version
  - APK_OUTPUT_DIR=app/build/outputs/apk/release
  - java -jar /legu/legu-all.jar configure -secretId $TENCENT_SECRET_ID -secretKey $TENCENT_SECRET_KEY -region $TENCENT_REGION
  - java -jar /legu/legu-all.jar legu -in $APK_OUTPUT_DIR/app-release.apk -out $APK_OUTPUT_DIR
  - ls $APK_OUTPUT_DIR