Improved build script (#277)

This commit is contained in:
Thorsten Sommer 2025-02-09 16:25:40 +01:00 committed by GitHub
parent 6040e88dad
commit 78315195cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

View File

@ -77,6 +77,7 @@
<MudList T="string"> <MudList T="string">
<Supporter Name="DevNullx64" Type="SupporterType.INDIVIDUAL" URL="https://github.com/DevNullx64" Acknowledgment="Thanks Luc for your build script contribution."/> <Supporter Name="DevNullx64" Type="SupporterType.INDIVIDUAL" URL="https://github.com/DevNullx64" Acknowledgment="Thanks Luc for your build script contribution."/>
<Supporter Name="SolsticeSpectrum" Type="SupporterType.INDIVIDUAL" URL="https://github.com/SolsticeSpectrum" Acknowledgment="Thanks for your build script contribution."/>
</MudList> </MudList>
</MudPaper> </MudPaper>
</MudItem> </MudItem>

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

@ -4,3 +4,4 @@
- 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.