1. 调整回调响应的Code字段类型为object以兼容更多返回值 2. 为JournalDto新增Url和QuestionNo属性 3. 为JournalPageTaskOutput新增Task字段并完善注释 4. 新增打印工作服务的发布、安装卸载脚本与README文档 5. 调整项目配置,添加运行时标识与资源拷贝配置 6. 优化程序启动逻辑,修复工作目录与日志路径问题 7. 简化日志配置,移除多余的Hangfire与AI配置项 8. 完善期刊删除逻辑,关联删除相关子数据 9. 新增期刊发布时的书页任务排序与回调地址补全逻辑
29 lines
595 B
PowerShell
29 lines
595 B
PowerShell
param(
|
|
[string]$Configuration = "Release",
|
|
[string]$Output = ".\publish\win-x64",
|
|
[switch]$SelfContained
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$projectPath = Join-Path $PSScriptRoot "..\QYZH.InteractiveMagazine.PrintWorker.csproj"
|
|
$publishArgs = @(
|
|
"publish",
|
|
$projectPath,
|
|
"-c", $Configuration,
|
|
"-r", "win-x64",
|
|
"-o", $Output
|
|
)
|
|
|
|
if ($SelfContained) {
|
|
$publishArgs += "--self-contained"
|
|
$publishArgs += "true"
|
|
} else {
|
|
$publishArgs += "--self-contained"
|
|
$publishArgs += "false"
|
|
}
|
|
|
|
dotnet @publishArgs
|
|
|
|
Write-Host "PrintWorker published to: $Output"
|