Skip to content

Commit

Permalink
fix: upload app (#22)
Browse files Browse the repository at this point in the history
* fix: upload app

* fix: comment
  • Loading branch information
luhc228 authored Jun 3, 2021
1 parent 47d90fb commit 2f4cd09
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/uploadApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const { build: { productName }, version } = packageJSON;
{ ossObjectFile: packageWithVersionFile, localFile: packageWithVersionFile },
{ ossObjectFile: packageZipFile, localFile: packageZipFile },
];
Promise.all([
fileLists.map(({ ossObjectFile, localFile }) => uploadToOSS(`${OSSObjectDir}/${ossObjectFile}`, path.join(buildResourcesDir, localFile))),
]);
await Promise.all(
fileLists.map(({ ossObjectFile, localFile }) => {
return uploadToOSS(`${OSSObjectDir}/${ossObjectFile}`, path.join(buildResourcesDir, localFile));
}),
);
})();

0 comments on commit 2f4cd09

Please sign in to comment.