1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-19 19:43:23 +08:00

Utilities/Release: Update file table for 3.19.3

This commit is contained in:
Brad King
2021-03-31 12:24:35 -04:00
parent d206c8f1ec
commit 30959aec8f
4 changed files with 48 additions and 6 deletions

View File

@@ -5,10 +5,14 @@
"rc4" "rc4"
"@version@" "@version@"
-- query: \.files\[\]\.name -- query: \.files\[\]\.name
"cmake-@version@-Linux-aarch64\.sh"
"cmake-@version@-Linux-aarch64\.tar\.gz"
"cmake-@version@-Linux-x86_64\.sh" "cmake-@version@-Linux-x86_64\.sh"
"cmake-@version@-Linux-x86_64\.tar\.gz" "cmake-@version@-Linux-x86_64\.tar\.gz"
"cmake-@version@-macos-universal\.dmg" "cmake-@version@-macos-universal\.dmg"
"cmake-@version@-macos-universal\.tar\.gz" "cmake-@version@-macos-universal\.tar\.gz"
"cmake-@version@-macos10\.10-universal\.dmg"
"cmake-@version@-macos10\.10-universal\.tar\.gz"
"cmake-@version@-win32-x86\.msi" "cmake-@version@-win32-x86\.msi"
"cmake-@version@-win32-x86\.zip" "cmake-@version@-win32-x86\.zip"
"cmake-@version@-win64-x64\.msi" "cmake-@version@-win64-x64\.msi"
@@ -20,6 +24,8 @@
"cmake-@version@\.zip" "cmake-@version@\.zip"
-- query: \.files\[\] \| select\(\(\.os\[\] \| \. == "macOS"\) and \(\.class == "volume"\)\) \| \.name -- query: \.files\[\] \| select\(\(\.os\[\] \| \. == "macOS"\) and \(\.class == "volume"\)\) \| \.name
"cmake-@version@-macos-universal\.dmg" "cmake-@version@-macos-universal\.dmg"
-- query: \.files\[\] \| select\(\(\.os\[\] \| \. == "macos10\.10"\) and \(\.class == "archive"\)\) \| \.name
"cmake-@version@-macos10\.10-universal\.tar\.gz"
-- query: \.files\[\] \| select\(\(\.os\[\] \| \. == "windows"\) and \(\.architecture\[\] \| \. == "i386"\) and \(\.class == "installer"\)\) \| \.name -- query: \.files\[\] \| select\(\(\.os\[\] \| \. == "windows"\) and \(\.architecture\[\] \| \. == "i386"\) and \(\.class == "installer"\)\) \| \.name
"cmake-@version@-win32-x86\.msi" "cmake-@version@-win32-x86\.msi"
-- query: \.files\[\] \| select\(\.architecture\[\] \| \. == "x86_64"\) \| \.name -- query: \.files\[\] \| select\(\.architecture\[\] \| \. == "x86_64"\) \| \.name
@@ -27,10 +33,12 @@
"cmake-@version@-Linux-x86_64\.tar\.gz" "cmake-@version@-Linux-x86_64\.tar\.gz"
"cmake-@version@-macos-universal\.dmg" "cmake-@version@-macos-universal\.dmg"
"cmake-@version@-macos-universal\.tar\.gz" "cmake-@version@-macos-universal\.tar\.gz"
"cmake-@version@-macos10\.10-universal\.dmg"
"cmake-@version@-macos10\.10-universal\.tar\.gz"
"cmake-@version@-win64-x64\.msi" "cmake-@version@-win64-x64\.msi"
"cmake-@version@-win64-x64\.zip" "cmake-@version@-win64-x64\.zip"
-- query: \.files\[\] \| select\(\[\.macOSmin\] \| inside\(\["10\.10", "10\.11", "10\.12"\]\)\) \| \.name -- query: \.files\[\] \| select\(\[\.macOSmin\] \| inside\(\["10\.10", "10\.11", "10\.12"\]\)\) \| \.name
"cmake-@version@-macos-universal\.dmg" "cmake-@version@-macos10\.10-universal\.dmg"
"cmake-@version@-macos-universal\.tar\.gz" "cmake-@version@-macos10\.10-universal\.tar\.gz"
-- query: \.hashFiles\[\] \| select\(\.algorithm\[\] \| \. == "SHA-256"\) \| \.name -- query: \.hashFiles\[\] \| select\(\.algorithm\[\] \| \. == "SHA-256"\) \| \.name
"cmake-@version@-SHA-256\.txt"$ "cmake-@version@-SHA-256\.txt"$

View File

@@ -10,6 +10,7 @@ foreach(query
".files[].name" ".files[].name"
".files[] | select(.os[] | . == \"source\") | .name" ".files[] | select(.os[] | . == \"source\") | .name"
".files[] | select((.os[] | . == \"macOS\") and (.class == \"volume\")) | .name" ".files[] | select((.os[] | . == \"macOS\") and (.class == \"volume\")) | .name"
".files[] | select((.os[] | . == \"macos10.10\") and (.class == \"archive\")) | .name"
".files[] | select((.os[] | . == \"windows\") and (.architecture[] | . == \"i386\") and (.class == \"installer\")) | .name" ".files[] | select((.os[] | . == \"windows\") and (.architecture[] | . == \"i386\") and (.class == \"installer\")) | .name"
".files[] | select(.architecture[] | . == \"x86_64\") | .name" ".files[] | select(.architecture[] | . == \"x86_64\") | .name"
".files[] | select([.macOSmin] | inside([\"10.10\", \"10.11\", \"10.12\"])) | .name" ".files[] | select([.macOSmin] | inside([\"10.10\", \"10.11\", \"10.12\"])) | .name"

View File

@@ -7,6 +7,18 @@
"string": "@version@" "string": "@version@"
}, },
"files": [ "files": [
{
"os": ["linux", "Linux"],
"architecture": ["aarch64"],
"class": "installer",
"name": "cmake-@version@-Linux-aarch64.sh"
},
{
"os": ["linux", "Linux"],
"architecture": ["aarch64"],
"class": "archive",
"name": "cmake-@version@-Linux-aarch64.tar.gz"
},
{ {
"os": ["linux", "Linux"], "os": ["linux", "Linux"],
"architecture": ["x86_64"], "architecture": ["x86_64"],
@@ -24,13 +36,27 @@
"architecture": ["arm64", "x86_64"], "architecture": ["arm64", "x86_64"],
"class": "volume", "class": "volume",
"name": "cmake-@version@-macos-universal.dmg", "name": "cmake-@version@-macos-universal.dmg",
"macOSmin": "10.10" "macOSmin": "10.13"
}, },
{ {
"os": ["macos", "macOS"], "os": ["macos", "macOS"],
"architecture": ["arm64", "x86_64"], "architecture": ["arm64", "x86_64"],
"class": "archive", "class": "archive",
"name": "cmake-@version@-macos-universal.tar.gz", "name": "cmake-@version@-macos-universal.tar.gz",
"macOSmin": "10.13"
},
{
"os": ["macos10.10", "macOS10.10"],
"architecture": ["arm64", "x86_64"],
"class": "volume",
"name": "cmake-@version@-macos10.10-universal.dmg",
"macOSmin": "10.10"
},
{
"os": ["macos10.10", "macOS10.10"],
"architecture": ["arm64", "x86_64"],
"class": "archive",
"name": "cmake-@version@-macos10.10-universal.tar.gz",
"macOSmin": "10.10" "macOSmin": "10.10"
}, },
{ {

View File

@@ -100,7 +100,7 @@ The members are:
``macOSmin`` ``macOSmin``
Optional member that is present on package files for macOS. Optional member that is present on package files for macOS.
The value is a JSON string specifying the minimum version of macOS The value is a JSON string specifying the minimum version of macOS
required to run the binary, e.g. ``"10.10"``. required to run the binary, e.g. ``"10.13"``.
``hashFiles`` ``hashFiles``
A JSON array of entries corresponding to files containing cryptographic A JSON array of entries corresponding to files containing cryptographic
@@ -142,10 +142,10 @@ For example, one may use ``jq`` queries:
(.architecture[] | . == "x86_64") and (.architecture[] | . == "x86_64") and
(.class == "archive")) | .name (.class == "archive")) | .name
* To select a Linux binary archive supporting ``x86_64`` hosts:: * To select a Linux binary archive supporting ``aarch64`` hosts::
.files[] | select((.os[] | . == "linux") and .files[] | select((.os[] | . == "linux") and
(.architecture[] | . == "x86_64") and (.architecture[] | . == "aarch64") and
(.class == "archive")) | .name (.class == "archive")) | .name
* To select a macOS binary archive supporting ``arm64`` hosts:: * To select a macOS binary archive supporting ``arm64`` hosts::
@@ -154,6 +154,13 @@ For example, one may use ``jq`` queries:
(.architecture[] | . == "arm64") and (.architecture[] | . == "arm64") and
(.class == "archive")) | .name (.class == "archive")) | .name
* To select a macOS binary archive supporting macOS 10.12 on ``x86_64`` hosts::
.files[] | select((.os[] | contains("macOS")) and
(.architecture[] | . == "x86_64") and
([.macOSmin] | inside(["10.10", "10.11", "10.12"]))
) | .name
* To select a SHA-256 hash file:: * To select a SHA-256 hash file::
.hashFiles[] | select(.algorithm[] | . == "SHA-256") | .name .hashFiles[] | select(.algorithm[] | . == "SHA-256") | .name