mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 15:10:22 +00:00
add api
This commit is contained in:
parent
d3bb3a8212
commit
36da1cf19a
3 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
## 0.8.4 release on 2023-07-26
|
||||
|
||||
add appstore search api
|
||||
|
||||
## 0.8.2 release on 2023-07-24
|
||||
|
||||
1. install from artifacts
|
||||
|
|
|
@ -78,7 +78,7 @@ def AppAutoUpdate(auto_update):
|
|||
|
||||
def AppStoreCore():
|
||||
|
||||
version_cmd = "curl" + const.ARTIFACT_URL + "/plugin/appstore/appstore.json"
|
||||
version_cmd = "curl " + const.ARTIFACT_URL + "/plugin/appstore/appstore.json"
|
||||
latest = shell_execute.execute_command_output_all(version_cmd)['result']
|
||||
most_version = json.loads(latest)['Requires at most']
|
||||
least_version = json.loads(latest)['Requires at least']
|
||||
|
@ -146,14 +146,14 @@ def get_appstore_update_list():
|
|||
except:
|
||||
local_version = "0.0.0"
|
||||
|
||||
version_cmd = "curl" + const.ARTIFACT_URL + "/plugin/appstore/appstore.json"
|
||||
version_cmd = "curl " + const.ARTIFACT_URL + "/plugin/appstore/appstore.json"
|
||||
latest = shell_execute.execute_command_output_all(version_cmd)
|
||||
version = json.loads(latest)['Version']
|
||||
ret = {}
|
||||
ret['local_version'] = local_version
|
||||
ret['target_version'] = version
|
||||
content = []
|
||||
cmd = "curl" + const.ARTIFACT_URL + "/plugin/appstore/CHANGELOG.md"
|
||||
cmd = "curl " + const.ARTIFACT_URL + "/plugin/appstore/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]
|
||||
|
|
|
@ -39,5 +39,5 @@
|
|||
"18.04"
|
||||
]
|
||||
},
|
||||
"VERSION": "0.8.5"
|
||||
"VERSION": "0.8.4"
|
||||
}
|
Loading…
Reference in a new issue