update add update

This commit is contained in:
2025-11-28 02:49:52 +08:00
parent 01c253e553
commit b2fcc84321
10 changed files with 162 additions and 81 deletions

View File

@@ -4,10 +4,8 @@ import path from 'path';
import fs from 'fs';
import FormData from 'form-data';
import { getBaseURL, query, storage } from '@/module/query.ts';
import { getConfig } from '@/module/index.ts';
import inquirer from 'inquirer';
import chalk from 'chalk';
import { installDeps } from '@/uitls/npm.ts';
import { upload } from '@/module/download/upload.ts';
import { getHash } from '@/uitls/hash.ts';
import { queryAppVersion } from '@/query/app-manager/query-app.ts';
@@ -96,7 +94,7 @@ const command = new Command('deploy')
dot,
absolute: true,
});
console.log('files', files);
// console.log('files', files);
// 添加一个工具函数来统一处理路径
const normalizeFilePath = (filePath: string) => {
return filePath.split(path.sep).join('/');
@@ -224,7 +222,6 @@ const uploadFiles = async (files: string[], directory: string, opts: UploadFileO
console.error('check failed', res);
return res;
}
console.log('res', res);
let needUpload = false;
for (const file of files) {
const filePath = path.join(directory, file);