Update OS detection logic and regex parsing for the Rust version

This commit is contained in:
Thorsten Sommer 2025-02-09 16:21:08 +01:00
parent 6040e88dad
commit 10f2acacb1
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 8 additions and 3 deletions

View File

@ -164,7 +164,11 @@ def get_rids []: nothing -> list {
} }
def get_os []: nothing -> string { def get_os []: nothing -> string {
(sys host).name | str downcase let os = (sys host).name | str downcase
if $os =~ "linux" {
return "linux"
}
$os
} }
def update_build_time []: nothing -> nothing { def update_build_time []: nothing -> nothing {
@ -215,7 +219,7 @@ def update_rust_version []: nothing -> nothing {
mut meta_lines = open --raw ../../metadata.txt | lines mut meta_lines = open --raw ../../metadata.txt | lines
mut rust_version = $meta_lines.5 mut rust_version = $meta_lines.5
let rust_data = (^rustc -Vv) | parse --regex 'rustc (?<version>[0-9.]+) \((?<commit>[a-zA-Z0-9]+)' let rust_data = (^rustc -Vv) | parse --regex 'rustc (?<version>[0-9.]+)(?:-nightly)? \((?<commit>[a-zA-Z0-9]+)'
let version = $rust_data.version.0 let version = $rust_data.version.0
let commit = $rust_data.commit.0 let commit = $rust_data.commit.0

View File

@ -3,4 +3,5 @@
- Added a ERI ((E)xternal (R)etrieval (I)nterface) client for communication with any ERI server. - Added a ERI ((E)xternal (R)etrieval (I)nterface) client for communication with any ERI server.
- Added `donework` as financial supporter. Thank you, Dominic! - Added `donework` as financial supporter. Thank you, Dominic!
- Added content contributors to the supporter page. We thank Luc (`DevNullx64`) for his build script contribution as well as Kerstin (`KeSah001`) for creating the Wiki pages. - Added content contributors to the supporter page. We thank Luc (`DevNullx64`) for his build script contribution as well as Kerstin (`KeSah001`) for creating the Wiki pages.
- Improved the resource handling when loading models. - Improved the resource handling when loading models.
- Improved the build script to support Arch Linux and other Linux distributions, along with Rust nightly environments. Thanks `SolsticeSpectrum` for the contribution.