Skip to content

Commit 0f21718

Browse files
authored
build: 修改 publish.sh 抑制调试符号生成方式 (#600)
1 parent a539bb2 commit 0f21718

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scripts/publish.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ publish_dotnet_dependent() {
6262
dotnet publish --configuration Release \
6363
--self-contained false \
6464
-p:PublishSingleFile=true \
65+
-p:DebugType=None \
66+
-p:DebugSymbols=false \
6567
-o $outputDir
6668

67-
echo "clear pdb files"
68-
rm -rf $outputDir/*.pdb
69-
7069
echo "zip files..."
7170
cd $publishDir
7271
zip -q -r bilibili-tool-pro-v$version-dotnet-dependent.zip ./dotnet-dependent/*
@@ -90,11 +89,10 @@ publish_self_contained() {
9089
--runtime $runtime \
9190
-p:PublishTrimmed=true \
9291
-p:PublishSingleFile=true \
92+
-p:DebugType=None \
93+
-p:DebugSymbols=false \
9394
-o $outputDir
9495

95-
echo "clear pdb files"
96-
rm -rf $outputDir/*.pdb
97-
9896
echo "zip files..."
9997
cd $publishDir
10098
zip -q -r bilibili-tool-pro-v$version-$runtime.zip ./$runtime/*

0 commit comments

Comments
 (0)