mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-03 22:07:21 +00:00
Took the architecture from the build target instead of metadata.txt (#1070)
This commit is contained in:
1 parent
db2cbaa71e
commit
940d214429
11 files changed
+37
-155
No files matched your search
@@ -201,7 +201,7 @@ jobs:
|
||||
# Read the first two lines of the metadata file:
|
||||
version=$(sed -n '1p' metadata.txt)
|
||||
build_time=$(sed -n '2p' metadata.txt)
|
||||
pdfium_full_version=$(sed -n '11p' metadata.txt)
|
||||
pdfium_full_version=$(sed -n '10p' metadata.txt)
|
||||
pdfium_chromium_revision=$(echo "$pdfium_full_version" | cut -d'.' -f3)
|
||||
source_commit=$(git rev-parse HEAD)
|
||||
|
||||
@@ -922,22 +922,15 @@ jobs:
|
||||
|
||||
# Format the app version:
|
||||
formatted_app_version="v${app_version}"
|
||||
|
||||
# Set the architecture:
|
||||
if sed --version 2>/dev/null | grep -q GNU; then
|
||||
sed -i "10s/.*/${{ matrix.dotnet_runtime }}/" metadata.txt
|
||||
else
|
||||
sed -i '' "10s/.*/${{ matrix.dotnet_runtime }}/" metadata.txt
|
||||
fi
|
||||
|
||||
|
||||
# Next line is the necessary PDFium version.
|
||||
# The format is '137.0.7123.0'. What we need
|
||||
# is the '7123' part:
|
||||
pdfium_version=$(sed -n '11p' metadata.txt)
|
||||
pdfium_version=$(sed -n '10p' metadata.txt)
|
||||
pdfium_version=$(echo $pdfium_version | cut -d'.' -f3)
|
||||
|
||||
# Next line is the vector store version:
|
||||
vector_store_version="$(sed -n '12p' metadata.txt)"
|
||||
vector_store_version="$(sed -n '11p' metadata.txt)"
|
||||
|
||||
# Write the metadata to the environment:
|
||||
echo "APP_VERSION=${app_version}" >> $GITHUB_ENV
|
||||
@@ -996,21 +989,15 @@ jobs:
|
||||
|
||||
# Format the app version:
|
||||
$formatted_app_version = "v${app_version}"
|
||||
|
||||
# Set the architecture:
|
||||
$metadata[9] = "${{ matrix.dotnet_runtime }}"
|
||||
|
||||
# Write the changed metadata back to the file:
|
||||
Set-Content -Path metadata.txt -Value $metadata
|
||||
|
||||
|
||||
# Next line is the necessary PDFium version.
|
||||
# The format is '137.0.7123.0'. What we need
|
||||
# is the '7123' part:
|
||||
$pdfium_version = $metadata[10]
|
||||
$pdfium_version = $metadata[9]
|
||||
$pdfium_version = $pdfium_version.Split('.')[2]
|
||||
|
||||
# Next line is the vector store version:
|
||||
$vector_store_version = $metadata[11]
|
||||
$vector_store_version = $metadata[10]
|
||||
|
||||
# Write the metadata to the environment:
|
||||
Write-Output "APP_VERSION=${app_version}" >> $env:GITHUB_ENV
|
||||
|
||||
Reference in new issue
Block a user