Commit d64292d2 authored by nano's avatar nano

unlink file

parent 1213ab16
This diff is collapsed.
......@@ -108,8 +108,7 @@ async function main() {
for (let app of _.sampleSize(data, 2)) {
if (!['ygopro', 'desmume', 'test'].includes(app['id'])) {
apps[app['id']] = app;
await createApp(app).catch(error => {
});
await createApp(app)
await updateApp(app);
}
}
......
......@@ -117,7 +117,7 @@ export const UploadPackage = async (ctx: Context) => {
await pack!.save();
// 上传完,干掉本地目录
await fs.removeAsync(bundled.distPath);
await fs.unlinkAsync(bundled.distPath);
} catch (e) {
......@@ -182,7 +182,7 @@ const uploadPackageUrl = async (ctx: Context) => {
await pack!.save();
// 上传完,干掉本地目录
await fs.removeAsync(bundled.distPath);
await fs.unlinkAsync(bundled.distPath);
} catch (e) {
console.log(e);
......
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