mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 23:18:00 +00:00
Fixed handling of versions on Windows
This commit is contained in:
1 file changed
+16
-3
@@ -114,9 +114,22 @@ jobs:
|
|||||||
$app_version = Get-Content metadata.txt -TotalCount 1
|
$app_version = Get-Content metadata.txt -TotalCount 1
|
||||||
$build_time = Get-Content metadata.txt -TotalCount 2 | Select-Object -Last 1
|
$build_time = Get-Content metadata.txt -TotalCount 2 | Select-Object -Last 1
|
||||||
$build_number = Get-Content metadata.txt -TotalCount 3 | Select-Object -Last 1
|
$build_number = Get-Content metadata.txt -TotalCount 3 | Select-Object -Last 1
|
||||||
$dotnet_sdk_version = Get-Content metadata.txt -TotalCount 4 | Select-Object -Last 1
|
|
||||||
$dotnet_runtime_version = Get-Content metadata.txt -TotalCount 5 | Select-Object -Last 1
|
# Next line is the .NET SDK version.
|
||||||
$rust_version = Get-Content metadata.txt -TotalCount 6 | Select-Object -Last 1
|
# The format is '8.0.205 (commit 3e1383b780)'.
|
||||||
|
# We extract only the version number, though:
|
||||||
|
$dotnet_sdk_version = ((Get-Content -Path 'metadata.txt')[3] -match '(\d+\.\d+\.\d+)') | Out-Null; $matches[1]
|
||||||
|
|
||||||
|
# Next line is the .NET runtime version.
|
||||||
|
# The format is '8.0.5 (commit 087e15321b)'.
|
||||||
|
# We extract only the version number, though:
|
||||||
|
$dotnet_runtime_version = ((Get-Content -Path 'metadata.txt')[4] -match '(\d+\.\d+\.\d+)') | Out-Null; $matches[1]
|
||||||
|
|
||||||
|
# Next line is the Rust version.
|
||||||
|
# The format is '1.78.0 (commit 9b00956e5)'.
|
||||||
|
# We extract only the version number, though:
|
||||||
|
$rust_version = ((Get-Content -Path 'metadata.txt')[5] -match '(\d+\.\d+\.\d+)') | Out-Null; $matches[1]
|
||||||
|
|
||||||
$mud_blazor_version = Get-Content metadata.txt -TotalCount 7 | Select-Object -Last 1
|
$mud_blazor_version = Get-Content metadata.txt -TotalCount 7 | Select-Object -Last 1
|
||||||
$tauri_version = Get-Content metadata.txt -TotalCount 8 | Select-Object -Last 1
|
$tauri_version = Get-Content metadata.txt -TotalCount 8 | Select-Object -Last 1
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user