Skip to content

Commit

Permalink
fix: Build.ps1 build from source not work (yetone#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
recih authored and brewinski committed Jan 10, 2025
1 parent a3df9b1 commit a7750aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ function Build-FromSource($feature) {

cargo build --release --features=$feature

$SCRIPT_DIR = $PSScriptRoot
$targetTokenizerFile = "avante_tokenizers.dll"
$targetTemplatesFile = "avante_templates.dll"
Copy-Item (Join-Path "target\release\avante_tokenizers.dll") (Join-Path $BuildDir $targetTokenizerFile)
Copy-Item (Join-Path "target\release\avante_templates.dll") (Join-Path $BuildDir $targetTemplatesFile)
Copy-Item (Join-Path $SCRIPT_DIR "target\release\avante_tokenizers.dll") (Join-Path $BuildDir $targetTokenizerFile)
Copy-Item (Join-Path $SCRIPT_DIR "target\release\avante_templates.dll") (Join-Path $BuildDir $targetTemplatesFile)

Remove-Item -Recurse -Force "target"
}
Expand Down

0 comments on commit a7750aa

Please sign in to comment.