|
@@ -50,7 +50,7 @@ async function getUpdateInfo(postConfig) {
|
|
|
if (updateInfo === 'git') {
|
|
if (updateInfo === 'git') {
|
|
|
console.log('开始获取git提交信息');
|
|
console.log('开始获取git提交信息');
|
|
|
updateInfo = await execAsync('git log -1 --pretty=format:"%h %s"');
|
|
updateInfo = await execAsync('git log -1 --pretty=format:"%h %s"');
|
|
|
- console.log('使用git提交信息作为更新信息');
|
|
|
|
|
|
|
+ console.log('使用git提交信息 "' + updateInfo + '" 作为更新信息');
|
|
|
}
|
|
}
|
|
|
return updateInfo;
|
|
return updateInfo;
|
|
|
}
|
|
}
|
|
@@ -145,7 +145,7 @@ async function aliOSSMultipartUpload(client, fileName, uploadFile, progressCallb
|
|
|
|
|
|
|
|
export async function postAppUpdate(axiosInstance, param) {
|
|
export async function postAppUpdate(axiosInstance, param) {
|
|
|
const postConfig = await getConfig();
|
|
const postConfig = await getConfig();
|
|
|
- const { versionId, versionName } = await selectVersion(false, postConfig.lastVersion);
|
|
|
|
|
|
|
+ const { versionId, versionName } = await selectVersion(postConfig.lastVersion);
|
|
|
const updateInfo = await getUpdateInfo(postConfig);
|
|
const updateInfo = await getUpdateInfo(postConfig);
|
|
|
|
|
|
|
|
const serverConfig = await axiosInstance.post('/update-post', {
|
|
const serverConfig = await axiosInstance.post('/update-post', {
|
|
@@ -339,7 +339,7 @@ export async function postWebUpdate(axiosInstance, param) {
|
|
|
const noDelete = param.ndelete;
|
|
const noDelete = param.ndelete;
|
|
|
|
|
|
|
|
const postConfig = await getConfig();
|
|
const postConfig = await getConfig();
|
|
|
- const { versionId, versionName } = await selectVersion(false, postConfig.lastVersion);
|
|
|
|
|
|
|
+ const { versionId, versionName } = await selectVersion(postConfig.lastVersion);
|
|
|
const updateInfo = await getUpdateInfo(postConfig);
|
|
const updateInfo = await getUpdateInfo(postConfig);
|
|
|
|
|
|
|
|
postConfig.lastVersion = versionId;
|
|
postConfig.lastVersion = versionId;
|