mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 15:10:22 +00:00
0.8.8
This commit is contained in:
parent
ac1ca018ef
commit
ef51dc032b
7 changed files with 17 additions and 12 deletions
|
@ -1,3 +1,7 @@
|
|||
## 0.8.8 release on 2023-07-27
|
||||
|
||||
fixed update search api bug
|
||||
|
||||
## 0.8.5 release on 2023-07-26
|
||||
|
||||
add docs
|
||||
|
|
|
@ -41,14 +41,14 @@ def appstore_update():
|
|||
|
||||
# 当点击appstore升级时,是无条件升级,不需要做版本的判定
|
||||
download_url = const.ARTIFACT_URL + "/plugin/appstore/appstore-latest.zip"
|
||||
cmd = "cd /opt && wget " + download_url + " && unzip appstore-latest.zip "
|
||||
cmd = "cd /opt && rm -rf /opt/appstore* && wget " + download_url + " && unzip appstore-latest.zip "
|
||||
shell_execute.execute_command_output_all(cmd)
|
||||
|
||||
shell_execute.execute_command_output_all("rm -rf /usr/share/cockpit/appstore && cp /opt/appstore /usr/share/cockpit")
|
||||
shell_execute.execute_command_output_all("rm -rf /usr/share/cockpit/appstore && cp -r /opt/appstore /usr/share/cockpit")
|
||||
shell_execute.execute_command_output_all("rm -rf /opt/appstore*")
|
||||
|
||||
library_url = const.ARTIFACT_URL + "/plugin/library/library-latest.zip"
|
||||
library_cmd = "cd /opt && wget " + library_url + " && unzip library-latest.zip "
|
||||
library_cmd = "cd /opt && rm -rf /opt/library* && wget " + library_url + " && unzip library-latest.zip "
|
||||
shell_execute.execute_command_output_all(library_cmd)
|
||||
shell_execute.execute_command_output_all("rm -rf /data/library && cp -r /opt/library /data")
|
||||
shell_execute.execute_command_output_all("rm -rf /opt/library*")
|
||||
|
@ -98,7 +98,7 @@ def AppStoreUpdate():
|
|||
core_support = AppStoreCore()
|
||||
|
||||
if core_support == "-1":
|
||||
raise CommandException(const.ERRORMESSAGE_SERVER_VERSION_NOTSUPPORT, "You must upgrade websoft9 core", "You must upgrade websoft9 core")
|
||||
raise CommandException(const.ERRORMESSAGE_SERVER_VERSION_NEEDUPGRADE, "You must upgrade websoft9 core", "You must upgrade websoft9 core")
|
||||
elif core_support == "1":
|
||||
raise CommandException(const.ERRORMESSAGE_SERVER_VERSION_NOTSUPPORT, "core not support,can not upgrade", "core not support,can not upgrade")
|
||||
appstore_update()
|
||||
|
@ -119,7 +119,7 @@ def get_update_list():
|
|||
ret['local_version'] = local_version
|
||||
ret['target_version'] = version
|
||||
content = []
|
||||
cmd = "curl" + const.ARTIFACT_URL + "/CHANGELOG.md"
|
||||
cmd = "curl " + const.ARTIFACT_URL + "/CHANGELOG.md"
|
||||
change_log_contents = shell_execute.execute_command_output_all(cmd)['result']
|
||||
change_log = change_log_contents.split('## ')[1].split('\n')
|
||||
date = change_log[0].split()[-1]
|
||||
|
|
|
@ -19,6 +19,7 @@ ERRORMESSAGE_SERVER_COMMAND="Server.Container.Error"
|
|||
ERRORMESSAGE_SERVER_SYSTEM="Server.SystemError"
|
||||
ERRORMESSAGE_SERVER_RESOURCE="Server.ResourceError"
|
||||
ERRORMESSAGE_SERVER_VERSION_NOTSUPPORT="Server.Version.NotSupport"
|
||||
ERRORMESSAGE_SERVER_VERSION_NEEDUPGRADE="Server.Version.NeedUpgradeCore"
|
||||
|
||||
# 应用状态定义
|
||||
# 应用启动中 installing
|
||||
|
|
|
@ -52,13 +52,13 @@ domain = "  Domain_set:{\n\n" \
|
|||
"    domains:域名列表\n\n" \
|
||||
"    default_domain:默认域名\n\n  }\n\n}\n\n"
|
||||
|
||||
update = "  Compare_content: 内容比较{\n\n" \
|
||||
update = "  Compare_content: 内容比较 {\n\n" \
|
||||
"    local_version: 当前版本,\n\n" \
|
||||
"    &target_version: 最新版本\n\n" \
|
||||
"    target_version: 最新版本\n\n" \
|
||||
"    content: 更新内容\n\n" \
|
||||
"    date: 更新日期\n\n" \
|
||||
"    update: 是否有更新\n\n" \
|
||||
"    core_compare: 是否支持升级(-1:需要升级内核 0:可以升级 1:无法支持)\n\n    }\n\n"
|
||||
"    core_compare: 是否支持升级(-1:需要升级内核 0:可以升级 1:无法支持)\n\n    }\n\n}\n\n"
|
||||
|
||||
appstore_update = "  Update_flag: 更新结果(成功或失败)\n\n}\n\n"
|
||||
auto = "  auto_update: 目前的自动更新状态\n\n}\n\n"
|
||||
|
|
|
@ -1 +1 @@
|
|||
新增接口 docs 文档:appstore 更新信息查询
|
||||
fixed update search api bug
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
APP_NAME=websoft9-appmanage
|
||||
APP_VERSION=0.8.5
|
||||
APP_VERSION=0.8.8
|
||||
APP_HTTP_PORT=5000
|
||||
APP_NETWORK=websoft9
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"SERVICES": {
|
||||
"PORTAINER": "2.18.3",
|
||||
"NGINX": "2.10.3",
|
||||
"APPMANAGE": "0.8.5",
|
||||
"APPMANAGE": "0.8.8",
|
||||
"REDIS": "7.0.11"
|
||||
},
|
||||
"PLUGINS": {
|
||||
|
@ -39,5 +39,5 @@
|
|||
"18.04"
|
||||
]
|
||||
},
|
||||
"VERSION": "0.8.5"
|
||||
"VERSION": "0.8.8"
|
||||
}
|
Loading…
Reference in a new issue