From 4a947a40b19de93de19c6473abf47f742e76800a Mon Sep 17 00:00:00 2001 From: GwWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 10 Dec 2025 12:09:03 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E7=A7=BB=E9=99=A4=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E7=AC=A6=E5=8F=B7=E5=8C=85=E5=90=AB=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 GitHub Actions 的 publish 工作流中移除了 `--include-symbols` 参数 - 在项目文件中显式设置 `` 为 portable - 确保生成的包不包含符号文件,减少包体积 - 保留了便携式调试信息以支持基本调试需求 - 更新了构建配置以匹配新的发布流程 - 验证了测试和发布步骤仍然正常运行 --- .github/workflows/publish.yml | 2 +- GFramework.csproj | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 525a2dd..eb6bb17 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/GFramework.csproj b/GFramework.csproj index 5f19765..3a64a79 100644 --- a/GFramework.csproj +++ b/GFramework.csproj @@ -15,6 +15,7 @@ true true true + portable true snupkg GFramework