成功发布到仓库

This commit is contained in:
zqm
2025-10-23 15:41:28 +08:00
parent 810cb1c344
commit 00ecfe3a97

View File

@@ -161,6 +161,16 @@ $contentTypesPath = Join-Path $tempDir "[Content_Types].xml"
Set-Content -LiteralPath $contentTypesPath -Value "<?xml version='1.0' encoding='utf-8'?><Types xmlns='http://schemas.openxmlformats.org/package/2006/content-types'><Default Extension='dll' ContentType='application/octet-stream'/><Default Extension='xml' ContentType='application/xml'/></Types>"
Write-Host "已在 $contentTypesPath 创建[Content_Types].xml"
# 复制nuspec文件到包结构根目录
$sourceNuspecPath = Join-Path $output "$packageId.nuspec"
$destNuspecPath = Join-Path $tempDir "$packageId.nuspec"
if (Test-Path $sourceNuspecPath) {
Copy-Item -Path $sourceNuspecPath -Destination $destNuspecPath -Force
Write-Host "已复制nuspec文件到包结构: $destNuspecPath"
} else {
Write-Host "警告: 找不到nuspec文件 $sourceNuspecPath" -ForegroundColor Yellow
}
# 创建zip文件并将其重命名为nupkg
$zipPath = Join-Path $output "temp_manual.zip"