diff --git a/CHANGELOG.md b/CHANGELOG.md index 699e079..3fe18c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index b938b6d..a2ec02c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/libs/standalone.js b/src/libs/standalone.js index f222a3c..1939fcf 100644 --- a/src/libs/standalone.js +++ b/src/libs/standalone.js @@ -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; }; @@ -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' : '' }`; };