From e4220c9178fee411d11090d20b7d73f65d406d32 Mon Sep 17 00:00:00 2001 From: csg01123119 Date: Wed, 27 Dec 2023 16:06:48 +0800 Subject: [PATCH] chore: release/1.18.0 --- all-releases.md | 2 +- gen.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/all-releases.md b/all-releases.md index 37267a52..bf4d74f3 100644 --- a/all-releases.md +++ b/all-releases.md @@ -28,4 +28,4 @@ |1.7.0|[Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.7.0/oss-browser-win32-ia32.zip) |[Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.7.0/oss-browser-win32-x64.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.7.0/oss-browser-darwin-x64.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.7.0/oss-browser-linux-ia32.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.7.0/oss-browser-linux-x64.zip)|[1.7.0.md](release-notes/1.7.0.en-US.md)| -[Earlier Releases](earlier-releases.md) +[Earlier Releases](earlier-releases.md) \ No newline at end of file diff --git a/gen.js b/gen.js index 7433972b..3cc2f5e9 100644 --- a/gen.js +++ b/gen.js @@ -7,6 +7,8 @@ const PRES = [ { title: "download", url: "https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/", + newUrl: + "https://oss-attachment.oss-cn-zhangjiakou.aliyuncs.com/ossbrowser/", }, ]; @@ -32,7 +34,8 @@ PRES.forEach((n) => { t.push(`||Windows ia32|Windows x64| Mac(zip) |Linux ia32|Linux x64|Release note| |-----|-----|-----|-----|--------|--------|---|`); vs.forEach((version) => { - var str = `|${version}|[Download](${n.url}${version}/oss-browser-win32-ia32.zip) |[Download](${n.url}${version}/oss-browser-win32-x64.zip) | [Download](${n.url}${version}/oss-browser-darwin-x64.zip) | [Download](${n.url}${version}/oss-browser-linux-ia32.zip) | [Download](${n.url}${version}/oss-browser-linux-x64.zip)|`; + const url = compareVersion("1.16.0", version) < 0 ? n.url : n.newUrl; + var str = `|${version}|[Download](${url}${version}/oss-browser-win32-ia32.zip) |[Download](${url}${version}/oss-browser-win32-x64.zip) | [Download](${url}${version}/oss-browser-darwin-x64.zip) | [Download](${url}${version}/oss-browser-linux-ia32.zip) | [Download](${url}${version}/oss-browser-linux-x64.zip)|`; if (compareVersion(version, start_i18n_version) >= 0) str += "[" + version + ".md](release-notes/" + version + ".md)|"; else str += "[" + version + ".md](release-notes/" + version + ".en-US.md)|";