|
| 1 | ++++ |
| 2 | +title = "Topic Update Manifest" |
| 3 | +description = "Metadata for AOSC OS Updates" |
| 4 | ++++ |
| 5 | + |
| 6 | +Overview |
| 7 | +=== |
| 8 | + |
| 9 | +The topic update manifest aims to provide a user-readable overview of changes |
| 10 | +during system updates. The files are stored in the TOML format in the |
| 11 | +[ABBS tree](https://github.com/AOSC-Dev/aosc-os-abbs) and converted into the |
| 12 | +JSON format on the server-side. |
| 13 | + |
| 14 | +Examples |
| 15 | +=== |
| 16 | + |
| 17 | +Below is an example for a conventional topic update manifest file: |
| 18 | + |
| 19 | +``` |
| 20 | +name.default = "KDE Updates (Winter 2023)" |
| 21 | +name.zh_CN = "KDE 更新(2023 年冬季)" |
| 22 | +# Security update (true/false)? |
| 23 | +security = true |
| 24 | +# OPTIONAL: PSA message for users. |
| 25 | +caution.default = """ |
| 26 | +This topic may use significantly more memory after reboot. Our testing finds |
| 27 | +that the new KDE version may use up to 16GiB of RAM. |
| 28 | +""" |
| 29 | +caution.zh_CN = """ |
| 30 | +本次更新重启后可能会需要更多内存。据我社维护者测试,新版 KDE 可能需要接近 16GiB 内存。""" |
| 31 | +
|
| 32 | +[packages] |
| 33 | +konsole = "23.04.1-1" |
| 34 | +dolphin = "23.04.1" |
| 35 | +# Package removed as part of the topic. |
| 36 | +pykde = false |
| 37 | +``` |
| 38 | + |
| 39 | +Below is a "cumulative" topic update manifest file: |
| 40 | + |
| 41 | +```toml |
| 42 | +name.default = "Winter 2023 Cumulative Update for amd64 AOSC OS systems" |
| 43 | +name.zh_MS = "适用于 amd64 AOSC OS 版本的 23 冬季累计更新" |
| 44 | + |
| 45 | +# Must not exist alongside [packages]. |
| 46 | +topics = [ |
| 47 | + "kde-survey-20231201", |
| 48 | + "core-12.1.0" |
| 49 | +] |
| 50 | +``` |
| 51 | + |
| 52 | +Files |
| 53 | +=== |
| 54 | + |
| 55 | +Topic update manifest files will be stored in a special `topics/` folder in the |
| 56 | +ABBS tree: |
| 57 | + |
| 58 | +``` |
| 59 | +TREE/topics/kde-survey-20231201.toml |
| 60 | +TREE/topics/llvm-16.0.6.toml |
| 61 | +TREE/topics/*.toml |
| 62 | +``` |
| 63 | + |
| 64 | +The repository server will pull the manifests from the ABBS tree, processing |
| 65 | +the them into a single JSON: |
| 66 | + |
| 67 | +``` |
| 68 | +*.toml => (server pulls the manifests) => /mirror/debs/manifest/updates.json |
| 69 | +``` |
| 70 | + |
| 71 | +A sample post-processed JSON file should look like this: |
| 72 | + |
| 73 | +```json |
| 74 | +{ |
| 75 | + "kde-survey-20231201": { |
| 76 | + "type": "conventional", |
| 77 | + "name": [ |
| 78 | + { "default": "KDE Updates (Winter 2023)" }, |
| 79 | + { "zh_CN": "KDE 更新(2023 年冬季)" } |
| 80 | + ], |
| 81 | + "security": true, |
| 82 | + "caution": [ |
| 83 | + { "default": "This topic may use significantly more memory after reboot. Our testing finds\nthat the new KDE version may use up to 16GiB of RAM." }, |
| 84 | + { "zh_CN": "本次更新重启后可能会需要更多内存。据我社维护者测试,新版 KDE 可能需要接近 16GiB 内存。" } |
| 85 | + ], |
| 86 | + "packages": [ |
| 87 | + { "name": "konsole", "version": "23.04.1-1" }, |
| 88 | + { "name": "dolphin", "version": "23.04.1" }, |
| 89 | + { "name": "pykde", "version": null } |
| 90 | + ] |
| 91 | + }, |
| 92 | + "cumulative-2023H3": { |
| 93 | + "type": "cumulative", |
| 94 | + "name": [ |
| 95 | + { "default": "Winter 2023 Cumulative Update for amd64 AOSC OS systems" }, |
| 96 | + { "zh_MS": "适用于 amd64 AOSC OS 版本的 23 冬季累计更新" } |
| 97 | + ], |
| 98 | + "topics": [ |
| 99 | + "kde-survey-20231201", |
| 100 | + "core-12.1.0" |
| 101 | + ] |
| 102 | + } |
| 103 | +} |
| 104 | +``` |
0 commit comments