From 61399323bfce9a2b704aa6df34192989a4929121 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 4 Jan 2026 11:32:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=20Costura.Fody?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E7=94=A8=E6=A0=87=E5=87=86=E5=A4=9A=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 Costura.Fody 包引用,避免杀毒软件误报 - 删除 FodyWeavers.xml 配置文件 - 更新 setup.iss 使用通配符复制所有 DLL - 更新 release.bat 复制所有依赖文件 安装包现在包含独立的 DLL 文件,符合 Windows 软件标准部署方式 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- PackagingMallShipper/FodyWeavers.xml | 11 ----------- PackagingMallShipper/PackagingMallShipper.csproj | 2 -- release.bat | 3 ++- setup.iss | 4 ++++ 4 files changed, 6 insertions(+), 14 deletions(-) delete mode 100644 PackagingMallShipper/FodyWeavers.xml diff --git a/PackagingMallShipper/FodyWeavers.xml b/PackagingMallShipper/FodyWeavers.xml deleted file mode 100644 index 2af0dda..0000000 --- a/PackagingMallShipper/FodyWeavers.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - false - - false - - true - - diff --git a/PackagingMallShipper/PackagingMallShipper.csproj b/PackagingMallShipper/PackagingMallShipper.csproj index 229c735..2e98fe8 100644 --- a/PackagingMallShipper/PackagingMallShipper.csproj +++ b/PackagingMallShipper/PackagingMallShipper.csproj @@ -26,8 +26,6 @@ - - diff --git a/release.bat b/release.bat index db86004..8a8cfd3 100644 --- a/release.bat +++ b/release.bat @@ -111,6 +111,7 @@ if not exist "publish\x86" mkdir publish\x86 copy /Y "PackagingMallShipper\bin\Release\net462\PackagingMallShipper.exe" "publish\" >nul copy /Y "PackagingMallShipper\bin\Release\net462\PackagingMallShipper.exe.config" "publish\" >nul +copy /Y "PackagingMallShipper\bin\Release\net462\*.dll" "publish\" >nul copy /Y "PackagingMallShipper\bin\Release\net462\x64\SQLite.Interop.dll" "publish\x64\" >nul copy /Y "PackagingMallShipper\bin\Release\net462\x86\SQLite.Interop.dll" "publish\x86\" >nul @@ -120,7 +121,7 @@ if not exist "publish\PackagingMallShipper.exe" ( pause exit /b 1 ) -echo [Info] Files copied to publish folder +echo [Info] Files copied to publish folder (EXE + DLLs) echo. echo [Step 4] Compiling installer... diff --git a/setup.iss b/setup.iss index 4a788e5..70ff371 100644 --- a/setup.iss +++ b/setup.iss @@ -33,8 +33,12 @@ Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.i Name: "desktopicon"; Description: "创建桌面快捷方式"; GroupDescription: "附加选项:"; Flags: checkedonce [Files] +; 主程序和配置 Source: "publish\PackagingMallShipper.exe"; DestDir: "{app}"; Flags: ignoreversion Source: "publish\PackagingMallShipper.exe.config"; DestDir: "{app}"; Flags: ignoreversion +; 所有依赖 DLL +Source: "publish\*.dll"; DestDir: "{app}"; Flags: ignoreversion +; SQLite 原生 DLL Source: "publish\x64\SQLite.Interop.dll"; DestDir: "{app}\x64"; Flags: ignoreversion Source: "publish\x86\SQLite.Interop.dll"; DestDir: "{app}\x86"; Flags: ignoreversion