Commit 45d8feca authored by nano's avatar nano

use uuid

parent e464bca1
This diff is collapsed.
...@@ -121,7 +121,7 @@ async function main() { ...@@ -121,7 +121,7 @@ async function main() {
// } // }
// } // }
for (let i = 0, t = 0; i <= data.length; i += 1, t += 60000) { for (let i = 0, t = 0; i <= data.length; i++, t += 60000) {
let app = data[i]; let app = data[i];
if (!['ygopro', 'desmume', 'test'].includes(app['id'])) { if (!['ygopro', 'desmume', 'test'].includes(app['id'])) {
setTimeout(async () => { setTimeout(async () => {
......
...@@ -171,8 +171,10 @@ const uploadPackageUrl = async (ctx: Context) => { ...@@ -171,8 +171,10 @@ const uploadPackageUrl = async (ctx: Context) => {
try { try {
await checkFilePath(file); await checkFilePath(file);
let filename = path.join(path.dirname(file), uuid.v1())
await fs.renameAsync(filename, file);
// 打包 // 打包
const bundled = await bundle(path.basename(file.path)); const bundled = await bundle(path.basename(filename));
// 打包完, 上传阿里云 // 打包完, 上传阿里云
await UploadOSS(bundled.distPath); await UploadOSS(bundled.distPath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment