Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35fb587e22 | ||
|
|
83645ccbf6 |
@@ -26,7 +26,6 @@ pnpm-lock.yaml
|
||||
# Environment variables
|
||||
.env.local
|
||||
.env.*.local
|
||||
scripts/upload-apk.local.json
|
||||
|
||||
# Build output and cache
|
||||
/.hbuilderx/
|
||||
|
||||
@@ -20,8 +20,7 @@ const path = require('path');
|
||||
const readline = require('readline');
|
||||
|
||||
const ROOT = path.resolve(__dirname, '..');
|
||||
const LOCAL_CONFIG = path.join(__dirname, 'upload-apk.local.json');
|
||||
const API_BASE_DEFAULT = 'https://hcscmtest.zzfzyc.com/hcscm_weave';
|
||||
const API_BASE = 'https://hcscmtest.zzfzyc.com/hcscm_weave';
|
||||
const UPYUN_API = 'https://v0.api.upyun.com';
|
||||
const CDN_HOST = {
|
||||
test: 'https://testhcscm.cdn.zzfzyc.com',
|
||||
@@ -61,12 +60,6 @@ function readManifestVersion() {
|
||||
return String(manifest.versionName || '').trim();
|
||||
}
|
||||
|
||||
function loadApiBase() {
|
||||
if (!fs.existsSync(LOCAL_CONFIG)) return API_BASE_DEFAULT;
|
||||
const config = JSON.parse(fs.readFileSync(LOCAL_CONFIG, 'utf8'));
|
||||
return String(config.apiBase || API_BASE_DEFAULT).replace(/\/+$/, '');
|
||||
}
|
||||
|
||||
function ask(question) {
|
||||
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
||||
return new Promise((resolve) => {
|
||||
@@ -254,7 +247,7 @@ async function main() {
|
||||
const status = args.target === 'prod' ? 2 : 1;
|
||||
const fileName = `${version}.apk`;
|
||||
const saveKey = `/version/${upgradeName}/${fileName}`;
|
||||
const apiBase = loadApiBase();
|
||||
const apiBase = API_BASE;
|
||||
const token = await login(apiBase);
|
||||
|
||||
console.log(`版本号: ${version}`);
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"apiBase": "https://hcscmtest.zzfzyc.com/hcscm_weave"
|
||||
}
|
||||
+2
-2
@@ -2,8 +2,8 @@
|
||||
"name" : "浩拓织厂",
|
||||
"appid" : "__UNI__F79F300",
|
||||
"description" : "周尚-浩拓织厂",
|
||||
"versionName" : "1.1.11",
|
||||
"versionCode" : 111,
|
||||
"versionName" : "1.1.12",
|
||||
"versionCode" : 112,
|
||||
"transformPx" : false,
|
||||
"app-plus" : {
|
||||
"optimization" : {
|
||||
|
||||
Reference in New Issue
Block a user