@@ -27,7 +27,7 @@ if ([string]::IsNullOrWhiteSpace($vcpkgTriplet)) {
2727}
2828
2929$workspaceRoot = Get-Location
30- $exePath = Join-Path $buildDir " bin\$appName .exe"
30+ $exePath = Join-Path $buildDir " Release\ bin\$appName .exe"
3131$packageName = " $appName -windows-x64"
3232$packageRoot = Join-Path $distDir $packageName
3333$zipPath = Join-Path $distDir " $packageName .zip"
@@ -38,7 +38,6 @@ $requiredRuntimeDlls = @(
3838 " libprotobuf-lite.dll" ,
3939 " libprotobuf.dll"
4040)
41-
4241if (-not (Test-Path - LiteralPath $exePath )) {
4342 throw " Built executable not found: $exePath "
4443}
@@ -56,11 +55,30 @@ if (Test-Path -LiteralPath $readmePath) {
5655 Copy-Item - LiteralPath $readmePath - Destination $packageRoot
5756}
5857
59- $modelPath = Join-Path $workspaceRoot " models\cat_vs_dog\best.onnx"
60- if (Test-Path - LiteralPath $modelPath ) {
61- $modelDir = Join-Path $packageRoot " models\cat_vs_dog"
62- New-Item - ItemType Directory - Path $modelDir - Force | Out-Null
63- Copy-Item - LiteralPath $modelPath - Destination $modelDir
58+ $catDogModelDir = Join-Path $workspaceRoot " models\cat_vs_dog"
59+ if (Test-Path - LiteralPath $catDogModelDir ) {
60+ $targetDir = Join-Path $packageRoot " models\cat_vs_dog"
61+ New-Item - ItemType Directory - Path $targetDir - Force | Out-Null
62+
63+ foreach ($fileName in @ (" best.onnx" , " labels.txt" , " dataset_summary.json" )) {
64+ $sourcePath = Join-Path $catDogModelDir $fileName
65+ if (Test-Path - LiteralPath $sourcePath ) {
66+ Copy-Item - LiteralPath $sourcePath - Destination $targetDir
67+ }
68+ }
69+ }
70+
71+ $wellColumnModelDir = Join-Path $workspaceRoot " models\WellColumnClassification"
72+ if (Test-Path - LiteralPath $wellColumnModelDir ) {
73+ $targetDir = Join-Path $packageRoot " models\WellColumnClassification"
74+ New-Item - ItemType Directory - Path $targetDir - Force | Out-Null
75+
76+ foreach ($fileName in @ (" best.onnx" , " labels.txt" , " dataset_summary.json" )) {
77+ $sourcePath = Join-Path $wellColumnModelDir $fileName
78+ if (Test-Path - LiteralPath $sourcePath ) {
79+ Copy-Item - LiteralPath $sourcePath - Destination $targetDir
80+ }
81+ }
6482}
6583
6684$runtimeBinDir = Join-Path $vcpkgRoot " installed\$vcpkgTriplet \bin"
0 commit comments