chore(build): 更改了输出 apk 的位置

This commit is contained in:
HuanChengFly 2020-04-05 19:04:01 +08:00
parent 4db6ec60ce
commit 6ed285dea1
4 changed files with 29 additions and 14 deletions

View File

@ -34,5 +34,5 @@ jobs:
name: Initial build
command: ./gradlew clean resguardRelease --no-daemon --stacktrace
- store_artifacts:
path: app/build/outputs/apk/
path: app/release/
destination: apks/

10
CHANGELOG.md Normal file
View File

@ -0,0 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### 3.8.1 (2020-04-05)
### Bug Fixes
* the good classify does not show ([b811065](https://github.com/HuanCheng65/TiebaLite/commit/b81106521d65e31796bf5a4d7a1ad2a33855a67d))

View File

@ -16,6 +16,17 @@ buildscript {
}
}
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(rootProject.file("keystore.properties")))
def applicationProperties = new Properties()
applicationProperties.load(new FileInputStream(rootProject.file("application.properties")))
def SHA1 = System.getenv("CIRCLE_SHA1")
def applicationVersionCode = applicationProperties["versionCode"].toInteger()
def applicationVersionName = applicationProperties["versionName"]
if (SHA1 != null) {
applicationVersionName = applicationVersionName + "-${SHA1.substring(0, 8)}"
}
andResGuard {
mappingFile = null
use7zip = true
@ -33,23 +44,15 @@ andResGuard {
"*.jpeg",
"*.gif",
"*.webp",
"*.kotlin_metadata",
"resources.arsc"]
sevenzip {
artifact = 'com.tencent.mm:SevenZip:1.2.10'
//path = "C:/Users/xppxu/AndroidStudioProjects/TiebaLite/app/7z/7za.exe"
}
/**
* Optional: if finalApkBackupPath is null, AndResGuard will overwrite final apk
* to the path which assemble[Task] write to*/
finalApkBackupPath = "${project.rootDir}/app/release/final.apk"
finalApkBackupPath = "${project.rootDir}/app/release/${applicationVersionName}(${applicationVersionCode}).apk"
digestalg = "SHA-256"
}
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
signingConfigs {
release {
@ -65,10 +68,10 @@ android {
applicationId "com.huanchengfly.tieba.post"
minSdkVersion 21
targetSdkVersion 29
versionCode 38006
versionName "3.8.1 Beta"
versionCode applicationVersionCode
versionName applicationVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
project.ext.set("archivesBaseName", versionName.replace(" ", "_") + "(" + versionCode + ")")
project.ext.set("archivesBaseName", "${versionName}(${versionCode})".toString())
}
buildTypes {
release {

2
application.properties Normal file
View File

@ -0,0 +1,2 @@
versionCode=38006
versionName=3.8.1-beta