Closed elysia-best closed 8 months ago
GET /api/update/latest
Response Examples
成功
{
"code": 200,
"message": "success",
"data": [
{
"package_name": "liblingmo",
"version": "1.9.10-1",
"description": "Some Description",
"changelog": "Some Text",
"name": "LingmoOS Core Package",
"update_date": "2014-05-03",
"download_link": "http://mirrors.localtest.300c.top/ppa/polaris/pool/main/libl/liblingmo/liblingmo_1.9.10-1_amd64.deb",
"filename": "liblingmo_1.9.10-1_amd64.deb"
}
]
}
HTTP Status Code | Meaning | Description | Data schema |
---|---|---|---|
200 | OK | 成功 | Inline |
HTTP Status Code 200
Name | Type | Required | Restrictions | Title | description |
---|---|---|---|---|---|
» code | integer | true | none | none | |
» message | string | true | none | none | |
» data | [object] | true | none | none | |
»» package_name | string | true | none | 软件包名 | none |
»» version | string | true | none | 版本号 | none |
»» description | string | true | none | 软件包描述 | none |
»» changelog | string | true | none | 更新记录 | none |
»» name | string | false | none | 软件包人性化描述 | none |
»» update_date | string | false | none | 更新时间 | none |
»» download_link | string | false | none | 下载链接 | none |
»» filename | string | true | none | none |
qinyn@qinyn-ThinkPad-T490:/var/www/html/ppa/polaris$ tree
.
├── apt-fast.conf
├── conf
│ └── distributions
├── db
│ ├── checksums.db
│ ├── contents.cache.db
│ ├── packages.db
│ ├── references.db
│ ├── release.caches.db
│ └── version
├── dists
│ └── polaris
│ ├── contrib
│ │ ├── binary-amd64
│ │ │ ├── Packages
│ │ │ ├── Packages.gz
│ │ │ └── Release
│ │ └── source
│ │ ├── Release
│ │ └── Sources.gz
│ ├── InRelease
│ ├── main
│ │ ├── binary-amd64
│ │ │ ├── Packages
│ │ │ ├── Packages.gz
│ │ │ └── Release
│ │ └── source
│ │ ├── Release
│ │ └── Sources.gz
│ ├── non-free
│ │ ├── binary-amd64
│ │ │ ├── Packages
│ │ │ ├── Packages.gz
│ │ │ └── Release
│ │ └── source
│ │ ├── Release
│ │ └── Sources.gz
│ ├── Release
│ └── Release.gpg
├── lingmoos.list
├── logs
│ └── ppa.log
└── pool
└── main
├── a
│ └── appmotor
│ └── appmotor_1.9.9_amd64.deb
├── c
│ ├── cute-daemon
│ │ └── cute-daemon_1.0.0_amd64.deb
│ ├── cute-debinstaller
│ │ └── cute-debinstaller_0.7-1_amd64.deb
│ ├── cute-screenlocker
│ │ └── cute-screenlocker_23.02.8_amd64.deb
│ └── cute-sddm-theme
│ └── cute-sddm-theme_23.02.8_amd64.deb
├── f
│ └── fluentui
│ └── fluentui_1.6.8_amd64.deb
├── k
│ └── kwin
│ ├── kwin-common_5.27.13-lingmo-b3_amd64.deb
│ ├── kwin-data_5.27.13-lingmo-b3_all.deb
│ ├── kwin-dev_5.27.13-lingmo-b3_amd64.deb
│ ├── kwin-wayland_5.27.13-lingmo-b3_amd64.deb
│ ├── kwin-x11_5.27.13-lingmo-b3_amd64.deb
│ ├── libkwineffects14_5.27.13-lingmo-b3_amd64.deb
│ ├── libkwinglutils14_5.27.13-lingmo-b3_amd64.deb
│ ├── lingmo-kwin-common_5.27.13-lingmo-b3_amd64.deb
│ ├── lingmo-kwin-data_5.27.13-lingmo-b3_all.deb
│ ├── lingmo-kwin-dev_5.27.13-lingmo-b3_amd64.deb
│ ├── lingmo-kwin-wayland_5.27.13-lingmo-b3_amd64.deb
│ └── lingmo-kwin-x11_5.27.13-lingmo-b3_amd64.deb
├── l
│ ├── lingmo-core
│ │ └── lingmo-core_2.0.0_amd64.deb
│ ├── lingmo-debinstaller
│ │ └── lingmo-debinstaller_0.7-1_amd64.deb
│ ├── lingmo-dock
│ │ └── lingmo-dock_2.0.0_amd64.deb
│ ├── lingmo-filemanager
│ │ └── lingmo-filemanager_2.0.0-3_amd64.deb
│ ├── lingmo-kwin-plugins
│ │ └── lingmo-kwin-plugins_2.0.2_amd64.deb
│ ├── lingmo-launcher
│ │ └── lingmo-launcher_0.9_amd64.deb
│ ├── lingmo-qt-plugins
│ │ └── lingmo-qt-plugins_2.0.0_amd64.deb
│ ├── lingmo-settings
│ │ ├── lingmo-settings_2.0.9-1_amd64.deb
│ │ └── lingmo-settings-dev_2.0.9-1_amd64.deb
│ ├── lingmo-statusbar
│ │ └── lingmo-statusbar_1.9.9-20_amd64.deb
│ ├── lingmo-systemicons
│ │ └── lingmo-systemicons_2.0.2-2_all.deb
│ ├── lingmoui
│ │ └── lingmoui_2.0.0_amd64.deb
│ ├── lingmo-windows-plugins
│ │ └── lingmo-windows-plugins_2.0.0_amd64.deb
│ └── ling-terminal
│ └── ling-terminal_8.62.2.235_amd64.deb
└── libl
└── liblingmo
└── liblingmo_1.9.10-1_amd64.deb
44 directories, 61 files
Fixes #5
@lingmo-dream 可以测试了
我这边本地搭建的环境ok
@ganyuanzhen OK, do you have some test resources such as screenshots of the test? It is not convenient to test at the moment. Also, thank you for your hard work.
提交记录:
Add helper scripts for updates.
规范化CMake install 命令
添加update请求
可以简单获取数据了,更新的logo条件没设置好
添加更新安装逻辑,待实现C++部分
后端逻辑基本完成,前端暂未注册。未测试
更新gitignore
解决了创建下载线程中的Segmentation fault
更新control中的依赖
可以同时给下载队列输入多个文件了。UI会有对应提示
前端UI基本完成。未测试下载安装
完成本地测试,未发现问题。