Updated the build script to .NET 9

This commit is contained in:
Thorsten Sommer 2025-03-12 19:34:55 +01:00
parent 40f635ab84
commit 587bf2ee35
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -3,7 +3,7 @@
def main [] {} def main [] {}
def are_assets_exist [rid: string] { def are_assets_exist [rid: string] {
$"bin/release/net8.0/($rid)/publish/wwwroot/_content/MudBlazor/MudBlazor.min.css" | path exists $"bin/release/net9.0/($rid)/publish/wwwroot/_content/MudBlazor/MudBlazor.min.css" | path exists
} }
def "main help" [] { def "main help" [] {
@ -63,7 +63,7 @@ def "main fix_web_assets" [] {
mkdir wwwroot/system mkdir wwwroot/system
# Copy the web assets from the first RID to the source project: # Copy the web assets from the first RID to the source project:
let source_paths = glob --depth 99 bin/release/net8.0/($rid)/publish/wwwroot/_content/* let source_paths = glob --depth 99 bin/release/net9.0/($rid)/publish/wwwroot/_content/*
for source_path in $source_paths { for source_path in $source_paths {
cp --recursive --force --update $source_path wwwroot/system/ cp --recursive --force --update $source_path wwwroot/system/
@ -112,7 +112,7 @@ def "main publish" [] {
} }
} }
let published_path = $"bin/release/net8.0/($rid)/publish/($published_filename_dotnet)" let published_path = $"bin/release/net9.0/($rid)/publish/($published_filename_dotnet)"
let final_path = $"bin/dist/($final_filename)" let final_path = $"bin/dist/($final_filename)"
if ($published_path | path exists) { if ($published_path | path exists) {