Skip to content

Commit 7831519

Browse files
authoredFeb 9, 2025
Improved build script (#277)
1 parent 6040e88 commit 7831519

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed
 

‎app/MindWork AI Studio/Pages/Supporters.razor

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777

7878
<MudList T="string">
7979
<Supporter Name="DevNullx64" Type="SupporterType.INDIVIDUAL" URL="https://github.com/DevNullx64" Acknowledgment="Thanks Luc for your build script contribution."/>
80+
<Supporter Name="SolsticeSpectrum" Type="SupporterType.INDIVIDUAL" URL="https://github.com/SolsticeSpectrum" Acknowledgment="Thanks for your build script contribution."/>
8081
</MudList>
8182
</MudPaper>
8283
</MudItem>

‎app/MindWork AI Studio/build.nu

+6-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ def get_rids []: nothing -> list {
164164
}
165165

166166
def get_os []: nothing -> string {
167-
(sys host).name | str downcase
167+
let os = (sys host).name | str downcase
168+
if $os =~ "linux" {
169+
return "linux"
170+
}
171+
$os
168172
}
169173

170174
def update_build_time []: nothing -> nothing {
@@ -215,7 +219,7 @@ def update_rust_version []: nothing -> nothing {
215219
mut meta_lines = open --raw ../../metadata.txt | lines
216220
mut rust_version = $meta_lines.5
217221

218-
let rust_data = (^rustc -Vv) | parse --regex 'rustc (?<version>[0-9.]+) \((?<commit>[a-zA-Z0-9]+)'
222+
let rust_data = (^rustc -Vv) | parse --regex 'rustc (?<version>[0-9.]+)(?:-nightly)? \((?<commit>[a-zA-Z0-9]+)'
219223
let version = $rust_data.version.0
220224
let commit = $rust_data.commit.0
221225

‎app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
- Added a ERI ((E)xternal (R)etrieval (I)nterface) client for communication with any ERI server.
44
- Added `donework` as financial supporter. Thank you, Dominic!
55
- 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.
6-
- Improved the resource handling when loading models.
6+
- Improved the resource handling when loading models.
7+
- Improved the build script to support Arch Linux and other Linux distributions, along with Rust nightly environments. Thanks `SolsticeSpectrum` for the contribution.

0 commit comments

Comments
 (0)
Please sign in to comment.