build: 移除构建中的符号包含选项

- 在 GitHub Actions 的 publish 工作流中移除了 `--include-symbols` 参数
- 在项目文件中显式设置 `<DebugType>` 为 portable
- 确保生成的包不包含符号文件,减少包体积
- 保留了便携式调试信息以支持基本调试需求
- 更新了构建配置以匹配新的发布流程
- 验证了测试和发布步骤仍然正常运行
This commit is contained in:
GwWuYou 2025-12-10 12:09:03 +08:00
parent 496137661d
commit 4a947a40b1
2 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,7 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build -c Release --include-symbols --no-restore -p:DebugType=portable
run: dotnet build -c Release --no-restore -p:DebugType=portable
- name: Test
run: dotnet test --no-build -c Release --verbosity normal

View File

@ -15,6 +15,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DebugType>portable</DebugType>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<RootNamespace>GFramework</RootNamespace>