zh 10 mesi fa
parent
commit
01b39fe3a7
3 ha cambiato i file con 13 aggiunte e 5 eliminazioni
  1. 9 1
      app/build.gradle
  2. 1 1
      config/.env
  3. 3 3
      config/piece.cnf

+ 9 - 1
app/build.gradle

@@ -11,7 +11,7 @@ android {
         minSdk 28
         targetSdk 34
         versionCode 1
-        versionName "1.2"
+        versionName "1.3"
 
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
     }
@@ -24,6 +24,14 @@ android {
             buildConfigField "String", "APK_URL", "\"https://swms.baoshi56.com/\""
             buildConfigField "String", "APK_CNF", '"piece.cnf"'
             signingConfig signingConfigs.debug
+            // 设置release构建类型的输出文件名
+            android.applicationVariants.all { variant ->
+                if (variant.buildType.name.equals('debug')) {
+                    variant.outputs.all {
+                        outputFileName = "PIECE.SIT.${defaultConfig.versionName}.apk"
+                    }
+                }
+            }
         }
         release {
             minifyEnabled false

+ 1 - 1
config/.env

@@ -2,5 +2,5 @@ alias=PIECE
 password=bsgood888
 
 #TODO apk.cnf使用 \n来分隔行 无需空格 == bAOSHI123!
-scp app/release/PIECE.1.2.apk root@api.baoshi56.com:/bssoft/bsshare/storage/app
+scp app/release/PIECE.1.3.apk root@api.baoshi56.com:/bssoft/bsshare/storage/app
 scp config/piece.cnf root@api.baoshi56.com:/bssoft/bsshare/storage/app

+ 3 - 3
config/piece.cnf

@@ -1,6 +1,6 @@
 {
-	"version" 	: "1.2",
-	"url"	: "https://swms.baoshi56.com/statics/storage/app/PIECE.1.2.apk",
-	"title"	: "1.2版本 宝时计件",
+	"version" 	: "1.3",
+	"url"	: "https://swms.baoshi56.com/statics/storage/app/PIECE.1.3.apk",
+	"title"	: "1.3版本 测试mac地址",
 	"content"	: "宝时计件"
 }