From 78315195cb539922fc8380cf94814cf202320283 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 9 Feb 2025 16:25:40 +0100 Subject: [PATCH] Improved build script (#277) --- app/MindWork AI Studio/Pages/Supporters.razor | 1 + app/MindWork AI Studio/build.nu | 8 ++++++-- app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/MindWork AI Studio/Pages/Supporters.razor b/app/MindWork AI Studio/Pages/Supporters.razor index 33179df..d1fc2d3 100644 --- a/app/MindWork AI Studio/Pages/Supporters.razor +++ b/app/MindWork AI Studio/Pages/Supporters.razor @@ -77,6 +77,7 @@ + diff --git a/app/MindWork AI Studio/build.nu b/app/MindWork AI Studio/build.nu index c37da50..d2819e7 100755 --- a/app/MindWork AI Studio/build.nu +++ b/app/MindWork AI Studio/build.nu @@ -164,7 +164,11 @@ def get_rids []: nothing -> list { } 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 { @@ -215,7 +219,7 @@ def update_rust_version []: nothing -> nothing { mut meta_lines = open --raw ../../metadata.txt | lines mut rust_version = $meta_lines.5 - let rust_data = (^rustc -Vv) | parse --regex 'rustc (?[0-9.]+) \((?[a-zA-Z0-9]+)' + let rust_data = (^rustc -Vv) | parse --regex 'rustc (?[0-9.]+)(?:-nightly)? \((?[a-zA-Z0-9]+)' let version = $rust_data.version.0 let commit = $rust_data.commit.0 diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md index e3286aa..bac59bf 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md @@ -3,4 +3,5 @@ - 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 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. \ No newline at end of file +- 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. \ No newline at end of file