🎨 桌面端自动下载更新安装包 https://github.com/siyuan-note/siyuan/issues/5837
This commit is contained in:
parent
395eeb6cdb
commit
920ead1e01
7 changed files with 8 additions and 8 deletions
2
.github/workflows/dockerimage.yml
vendored
2
.github/workflows/dockerimage.yml
vendored
|
@ -33,4 +33,4 @@ jobs:
|
|||
|
||||
- name: Build the Docker image
|
||||
run: |
|
||||
docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7 -t b3log/siyuan:latest -t b3log/siyuan:v2.1.13 .
|
||||
docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7 -t b3log/siyuan:latest -t b3log/siyuan:v2.1.14 .
|
|
@ -9,7 +9,7 @@
|
|||
<Identity Name="89C2A984.SiYuan"
|
||||
ProcessorArchitecture="x64"
|
||||
Publisher='CN=087C656E-C1D9-42D8-8807-CED45A74FC0F'
|
||||
Version="2.1.13.0"/>
|
||||
Version="2.1.14.0"/>
|
||||
<Properties>
|
||||
<DisplayName>SiYuan</DisplayName>
|
||||
<PublisherDisplayName>云南链滴科技有限公司</PublisherDisplayName>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "SiYuan",
|
||||
"version": "2.1.13",
|
||||
"version": "2.1.14",
|
||||
"description": "Build Your Eternal Digital Garden",
|
||||
"homepage": "https://b3log.org/siyuan",
|
||||
"main": "./electron/main.js",
|
||||
|
|
|
@ -380,7 +380,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
|||
if !skipNewVerInstallPkg() {
|
||||
newVerInstallPkgPath := ""
|
||||
if Conf.System.DownloadInstallPkg && !util.ISMicrosoftStore {
|
||||
newVerInstallPkgPath = GetNewVerInstallPkgPath()
|
||||
newVerInstallPkgPath = getNewVerInstallPkgPath()
|
||||
if "" != newVerInstallPkgPath && 0 == execInstallPkg {
|
||||
exitCode = 2
|
||||
return
|
||||
|
@ -388,7 +388,7 @@ func Close(force bool, execInstallPkg int) (exitCode int) {
|
|||
}
|
||||
|
||||
if 2 == execInstallPkg && "" != newVerInstallPkgPath { // 执行新版本安装
|
||||
execNewVerInstallPkg(newVerInstallPkgPath)
|
||||
go execNewVerInstallPkg(newVerInstallPkgPath)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -240,7 +240,7 @@ func AutoRefreshCheck() {
|
|||
|
||||
time.Sleep(3 * time.Minute)
|
||||
checkDownloadInstallPkg()
|
||||
if "" != GetNewVerInstallPkgPath() {
|
||||
if "" != getNewVerInstallPkgPath() {
|
||||
util.PushMsg(Conf.Language(61), 0)
|
||||
}
|
||||
}()
|
||||
|
|
|
@ -54,7 +54,7 @@ func execNewVerInstallPkg(newVerInstallPkgPath string) {
|
|||
logging.LogInfof("installed new version output [%s]", data)
|
||||
}
|
||||
|
||||
func GetNewVerInstallPkgPath() string {
|
||||
func getNewVerInstallPkgPath() string {
|
||||
if skipNewVerInstallPkg() {
|
||||
return ""
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ import (
|
|||
var Mode = "prod"
|
||||
|
||||
const (
|
||||
Ver = "2.1.13"
|
||||
Ver = "2.1.14"
|
||||
IsInsider = false
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue