Skip to content

Commit e68f2fc

Browse files
committed
build: 发布两份示例配置
- 将 example.toml 与 full.toml 复制到 target 输出目录 - 部署构建产物时同时包含精简版和完整版配置
1 parent c11c73b commit e68f2fc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

build.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Set-StrictMode -Version Latest
99

1010
$root = $PSScriptRoot
1111
$target = Join-Path $root 'target'
12-
$exampleName = 'AppleChu.example.toml'
12+
$exampleName = 'example.toml'
13+
$fullName = 'full.toml'
1314
$artifacts = @(
1415
@{
1516
Name = 'winhttp.dll'
@@ -47,6 +48,10 @@ try {
4748
$exampleDestination = Join-Path $target $exampleName
4849
Copy-Item -LiteralPath $exampleSource -Destination $exampleDestination -Force
4950
Write-Host "已复制到 $exampleDestination"
51+
$fullSource = Join-Path $target "i686-pc-windows-msvc\release\$fullName"
52+
$fullDestination = Join-Path $target $fullName
53+
Copy-Item -LiteralPath $fullSource -Destination $fullDestination -Force
54+
Write-Host "已复制到 $fullDestination"
5055

5156
if ($Deploy) {
5257
$deployDirectory = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Deploy)
@@ -57,6 +62,7 @@ try {
5762
Copy-Item -LiteralPath $source -Destination $deployDirectory -Force
5863
}
5964
Copy-Item -LiteralPath $exampleDestination -Destination $deployDirectory -Force
65+
Copy-Item -LiteralPath $fullDestination -Destination $deployDirectory -Force
6066

6167
Write-Host "已部署到 $deployDirectory"
6268
}

0 commit comments

Comments
 (0)