Skip to content

Commit

Permalink
Download binary from CDN to accelerate the process (#154)
Browse files Browse the repository at this point in the history
* Download binary from CDN to accelerate the process

* Prettify
  • Loading branch information
timqian authored Mar 9, 2022
1 parent 38ca662 commit a53b169
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

# [3.21.0](https://github.com/serverless/serverless-tencent/compare/v3.20.3..v3.21.0) (2022-03-09)

- Download binary from CDN to accelerate the process

# [3.20.3](https://github.com/serverless/serverless-tencent/compare/v3.20.2..v3.20.3) (2022-02-23)

- Request new logs only after earlier action succeed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "serverless-tencent",
"version": "3.20.3",
"version": "3.21.0",
"description": "Serverless Tencent command line tool",
"main": "./dist/index.js",
"repository": "serverless/serverless-tencent",
Expand Down
6 changes: 2 additions & 4 deletions src/libs/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ const isStandaloneExecutable = Boolean(
);

const resolveLatestTag = async () => {
const { body } = await got.get(
'https://slt-binary-sv-1300963013.cos.accelerate.myqcloud.com/latest-tag'
);
const { body } = await got.get('https://slt-binary-sv-1300963013.file.myqcloud.com/latest-tag');
return body;
};

Expand All @@ -58,7 +56,7 @@ const resolveUrl = (tagName) => {
}
})();

return `https://slt-binary-sv-1300963013.cos.accelerate.myqcloud.com/${tagName}/serverless-tencent-${platform}-${arch}${
return `https://slt-binary-sv-1300963013.file.myqcloud.com/${tagName}/serverless-tencent-${platform}-${arch}${
process.platform === 'win32' ? '.exe' : ''
}`;
};
Expand Down

0 comments on commit a53b169

Please sign in to comment.