Merge remote-tracking branch 'upstream/master' into feature-update-by-github
# Conflicts: # packages/gui/src/bridge/update/backend.js # packages/gui/src/bridge/update/front.jspull/303/head
commit
c79ace09cc
|
@ -178,7 +178,7 @@ function updateHandle (app, api, win, beforeQuit, quit, log) {
|
||||||
function downloadPart (app, value) {
|
function downloadPart (app, value) {
|
||||||
const appPath = appPathUtil.getAppRootPath(app)
|
const appPath = appPathUtil.getAppRootPath(app)
|
||||||
const fileDir = path.join(appPath, 'update')
|
const fileDir = path.join(appPath, 'update')
|
||||||
log.info('download dir', fileDir)
|
log.info('download dir:', fileDir)
|
||||||
try {
|
try {
|
||||||
fs.accessSync(fileDir, fs.constants.F_OK)
|
fs.accessSync(fileDir, fs.constants.F_OK)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -72,9 +72,7 @@ function install (app, api) {
|
||||||
function openGithubUrl () {
|
function openGithubUrl () {
|
||||||
api.ipc.openExternal('https://github.com/docmirror/dev-sidecar/releases')
|
api.ipc.openExternal('https://github.com/docmirror/dev-sidecar/releases')
|
||||||
}
|
}
|
||||||
return <div>
|
return <div>请前往 <a onClick={openGithubUrl}>github项目release页面</a> 下载新版本手动安装</div>
|
||||||
<div>请前往 <a onClick={openGithubUrl}>github项目release页面</a> 下载新版本手动安装</div>
|
|
||||||
</div>
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue