Skip to content

Commit d3b961d

Browse files
authored
Merge pull request #484 from aliyun/release/1.18.0
chore: release/1.18.0
2 parents 71afff6 + e4220c9 commit d3b961d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

all-releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
|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)|
2929

3030

31-
[Earlier Releases](earlier-releases.md)
31+
[Earlier Releases](earlier-releases.md)

gen.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const PRES = [
77
{
88
title: "download",
99
url: "https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/",
10+
newUrl:
11+
"https://oss-attachment.oss-cn-zhangjiakou.aliyuncs.com/ossbrowser/",
1012
},
1113
];
1214

@@ -32,7 +34,8 @@ PRES.forEach((n) => {
3234
t.push(`||Windows ia32|Windows x64| Mac(zip) |Linux ia32|Linux x64|Release note|
3335
|-----|-----|-----|-----|--------|--------|---|`);
3436
vs.forEach((version) => {
35-
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)|`;
37+
const url = compareVersion("1.16.0", version) < 0 ? n.url : n.newUrl;
38+
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)|`;
3639
if (compareVersion(version, start_i18n_version) >= 0)
3740
str += "[" + version + ".md](release-notes/" + version + ".md)|";
3841
else str += "[" + version + ".md](release-notes/" + version + ".en-US.md)|";

0 commit comments

Comments
 (0)