From ba422d32a484f42def291e665939dac5e40791b9 Mon Sep 17 00:00:00 2001 From: Sunrisepeak Date: Wed, 18 Nov 2026 15:07:35 +0900 Subject: [PATCH] mcpp.plugins 0.25.0: tools-steps, a member describes a step and a backend runs it --- CHANGELOG.md | 4 ++++ pkgs/m/mcpp.plugins.lua | 34 ++++++++++++++++++++++++++++++---- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38aa0db4..f3a003ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ ### Added +- **mcpp.plugins 0.25.0。** 新成员 `tools-steps`:多命令的步骤由成员描述为一组可移植操作(运行命令、touch、创建、删除、复制、 + 软链接、把运行时匹配的文件收进列表等),由后端执行,值原样传递;后端在 mcpp 原生支持之前为 `cmake -P` + (mcpp-community/mcpp#955)。`dist-apk` 与 `dist-apple` 改用它,不再有 shell 脚本作为动作程序;`latest` 指向 0.25.0 + (mcpp-community/mcpp-plugins#59)。 - **mcpp.plugins 0.24.0。** `dist-apk` 在 Windows 与 macOS 主机上与 Linux 一样打包:`d8`、`apksigner`、bundletool、Kotlin 编译器 与 coursier 改由 JDK 的 `java` 直接运行其 jar,流水线的 `/bin/sh` 辅助脚本合为一个由 `java` 运行的 Java 源文件,任何步骤都 不再需要 shell;CI 在 macOS 与 Windows 行打包 level 0 与 level 1。Windows 上 NDK 的 libc++ 模块源来自 diff --git a/pkgs/m/mcpp.plugins.lua b/pkgs/m/mcpp.plugins.lua index 5add1874..ac456baf 100644 --- a/pkgs/m/mcpp.plugins.lua +++ b/pkgs/m/mcpp.plugins.lua @@ -2,12 +2,17 @@ -- each member selected by a feature. -- -- [dependencies.mcpp] --- plugins = { version = "0.24.0", features = ["rules-spirv"], host-module = true } +-- plugins = { version = "0.25.0", features = ["rules-spirv"], host-module = true } -- -- // build.mcpp -- import mcpp; -- import mcpp.rules.spirv; -- +-- 0.25.0 (package floor mcpp 2026.10.30.1): tools-steps. A step of more than +-- one command is a program of portable operations a member describes and a +-- backend runs (cmake -P until mcpp runs step programs itself, mcpp#955); +-- dist-apk and dist-apple use it, and no action is a shell script. +-- -- 0.24.0 (package floor mcpp 2026.10.30.1): dist-apk packs on Windows and -- macOS hosts as on Linux. d8, apksigner, bundletool, the Kotlin compiler and -- coursier run from their jars on the JDK's java, and the pipeline's /bin/sh @@ -691,6 +696,13 @@ package = { xpm = { linux = { + ["0.25.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.25.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.25.0/mcpp-plugins-0.25.0.tar.gz", + }, + sha256 = "808f653cf0bcd80cef65b71d56f36ef1ee122ad8aa2335edc75f048ab0773474", + }, ["0.24.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.24.0.tar.gz", @@ -1013,9 +1025,16 @@ package = { }, sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5", }, - ["latest"] = { ref = "0.24.0" }, + ["latest"] = { ref = "0.25.0" }, }, macosx = { + ["0.25.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.25.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.25.0/mcpp-plugins-0.25.0.tar.gz", + }, + sha256 = "808f653cf0bcd80cef65b71d56f36ef1ee122ad8aa2335edc75f048ab0773474", + }, ["0.24.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.24.0.tar.gz", @@ -1338,9 +1357,16 @@ package = { }, sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5", }, - ["latest"] = { ref = "0.24.0" }, + ["latest"] = { ref = "0.25.0" }, }, windows = { + ["0.25.0"] = { + url = { + GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.25.0.tar.gz", + CN = "https://gitcode.com/mcpp-res/mcpp-plugins/releases/download/0.25.0/mcpp-plugins-0.25.0.tar.gz", + }, + sha256 = "808f653cf0bcd80cef65b71d56f36ef1ee122ad8aa2335edc75f048ab0773474", + }, ["0.24.0"] = { url = { GLOBAL = "https://github.com/mcpp-community/mcpp-plugins/archive/refs/tags/v0.24.0.tar.gz", @@ -1663,7 +1689,7 @@ package = { }, sha256 = "adf1f9d6691a5d05a8a4a94e83c733ea39caee1510ce2c9af4cb23bebabea9f5", }, - ["latest"] = { ref = "0.24.0" }, + ["latest"] = { ref = "0.25.0" }, }, },