build: disable PDB debug symbols in releases [CI SKIP]
This commit is contained in:
1 parent
6b12049df0
commit
a9ee4ec34c
4 files changed
+7
-2
No files matched your search
@@ -61,6 +61,7 @@ try {
|
||||
-p:PublishAot=true `
|
||||
-p:StripSymbols=true `
|
||||
-p:DebugType=none `
|
||||
-p:DebugSymbols=false `
|
||||
--artifacts-path $buildRoot `
|
||||
-o $output
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
|
||||
@@ -33,8 +33,10 @@ mkdir -p "$output" "$build_root" "$container_context/app" "$container_context/da
|
||||
|
||||
(cd "$root/backend" && dotnet publish src/Monitor.Backend \
|
||||
-m:3 -c Release --no-self-contained \
|
||||
-p:DebugType=none -p:DebugSymbols=false \
|
||||
-p:UseAppHost=false -p:OpenApiGenerateDocuments=false \
|
||||
--artifacts-path "$build_root" -o "$output")
|
||||
find "$output" -type f -name '*.pdb' -delete
|
||||
cp -a "$output/." "$container_context/app/"
|
||||
: > "$container_context/data/.keep"
|
||||
|
||||
|
||||
Reference in new issue
Block a user