chore(build): 更改了输出 apk 的位置
This commit is contained in:
parent
4db6ec60ce
commit
6ed285dea1
|
@ -34,5 +34,5 @@ jobs:
|
||||||
name: Initial build
|
name: Initial build
|
||||||
command: ./gradlew clean resguardRelease --no-daemon --stacktrace
|
command: ./gradlew clean resguardRelease --no-daemon --stacktrace
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: app/build/outputs/apk/
|
path: app/release/
|
||||||
destination: apks/
|
destination: apks/
|
||||||
|
|
|
@ -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))
|
|
@ -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 {
|
andResGuard {
|
||||||
mappingFile = null
|
mappingFile = null
|
||||||
use7zip = true
|
use7zip = true
|
||||||
|
@ -33,23 +44,15 @@ andResGuard {
|
||||||
"*.jpeg",
|
"*.jpeg",
|
||||||
"*.gif",
|
"*.gif",
|
||||||
"*.webp",
|
"*.webp",
|
||||||
|
"*.kotlin_metadata",
|
||||||
"resources.arsc"]
|
"resources.arsc"]
|
||||||
sevenzip {
|
sevenzip {
|
||||||
artifact = 'com.tencent.mm:SevenZip:1.2.10'
|
artifact = 'com.tencent.mm:SevenZip:1.2.10'
|
||||||
//path = "C:/Users/xppxu/AndroidStudioProjects/TiebaLite/app/7z/7za.exe"
|
|
||||||
}
|
}
|
||||||
|
finalApkBackupPath = "${project.rootDir}/app/release/${applicationVersionName}(${applicationVersionCode}).apk"
|
||||||
/**
|
|
||||||
* 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"
|
|
||||||
digestalg = "SHA-256"
|
digestalg = "SHA-256"
|
||||||
}
|
}
|
||||||
|
|
||||||
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
||||||
def keystoreProperties = new Properties()
|
|
||||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
|
@ -65,10 +68,10 @@ android {
|
||||||
applicationId "com.huanchengfly.tieba.post"
|
applicationId "com.huanchengfly.tieba.post"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 38006
|
versionCode applicationVersionCode
|
||||||
versionName "3.8.1 Beta"
|
versionName applicationVersionName
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
project.ext.set("archivesBaseName", versionName.replace(" ", "_") + "(" + versionCode + ")")
|
project.ext.set("archivesBaseName", "${versionName}(${versionCode})".toString())
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
versionCode=38006
|
||||||
|
versionName=3.8.1-beta
|
Loading…
Reference in New Issue