We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48cabc4 commit a558267Copy full SHA for a558267
tools/download-aliyun.mjs
@@ -1,4 +1,5 @@
1
import path from 'path';
2
+import fs from 'fs';
3
import OSS from 'ali-oss';
4
5
const args = process.argv.slice(2);
@@ -25,7 +26,10 @@ const store = new OSS({
25
26
27
console.info(`downloading ${ossFilename}...`);
28
const resp = await store.get(
- `web-assets/yodaos-jsar/runtime-artifacts/${ossFilename}`,
29
- artifactFilename.href
+ `web-assets/yodaos-jsar/runtime-artifacts/${ossFilename}`
30
);
31
console.info(resp);
32
+if (resp.content) {
33
+ console.info(`saving "${resp.content}" => (${artifactFilename})`);
34
+ fs.writeFileSync(artifactFilename, resp.content);
35
+}
0 commit comments