Skip to content

Commit 0bb7243

Browse files
authored
Merge pull request #475 from aliyun/csg/fix/develop/53032343
fix: automatic upgrade
2 parents c39582a + d19c7b2 commit 0bb7243

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

app/index.html

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,25 +117,18 @@
117117

118118
var Global = {
119119
//ossEndpointProtocol:'https:',
120-
121120
app: {
122121
id: custom.appId || "oss-browser",
123122
logo: custom.logo_png || "icons/icon.png", //logo
124123
version: custom.version || pkg.version, //自定义版本号
125124
},
126125
i18n: require("./node/i18n"),
127-
128126
config_path: path.join(os.homedir(), ".oss-browser"),
129127

130128
//release notes目录后缀,里面有 ${version}.md, 如 1.0.0.md
131-
release_notes_url: `https://raw.githubusercontent.com/aliyun/oss-browser/${
132-
isDev ? "dev" : "master"
133-
}/release-notes/`,
134-
135-
// //升级检测链接
136-
upgrade_url: `https://raw.githubusercontent.com/aliyun/oss-browser/${
137-
isDev ? "dev" : "master"
138-
}/upgrade.json`,
129+
release_notes_url: `https://oss-browser-attachment.oss-cn-hangzhou.aliyuncs.com/release-notes/`,
130+
// 升级检测链接
131+
upgrade_url: `https://oss-browser-attachment.oss-cn-hangzhou.aliyuncs.com/upgrade.json`,
139132

140133
about_html: custom.about_html,
141134
};

upgrade.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"version": "1.9.5",
3-
"package_url": "https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/",
2+
"version": "1.17.0",
3+
"package_url": "https://oss-browser-attachment.oss-cn-hangzhou.aliyuncs.com/",
44
"package_urls": [
5-
"https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/"
5+
"https://oss-browser-attachment.oss-cn-hangzhou.aliyuncs.com/"
66
],
77
"files": ["app.asar"]
88
}

0 commit comments

Comments
 (0)