forked from Fiesty-Cushion/Echo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.ps1
36 lines (25 loc) · 1.19 KB
/
setup.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copying the dlls
$sourcePath = ".\Libraries\lib\"
$destinationPath = "\build\VS2022\bin\x64\Debug"
if (-Not (Test-Path -Path $destinationPath)) {
New-Item -ItemType Directory -Force -Path $destinationPath | Out-Null
}
$dllFiles = Get-ChildItem -Path $sourcePath -Filter "*.dll" -File
foreach ($dllFile in $dllFiles) {
$destinationFile = Join-Path -Path $destinationPath -ChildPath $dllFile.Name
Copy-Item -Path $dllFile.FullName -Destination $destinationFile -Force
}
Write-Host "DLLs copied to $destinationPath" -ForegroundColor Green
# Checking for the whisper model
# $filePath = "..\Models\ggml-model-whisper-base.en.bin"
# $downloadURL = "https://ggml.ggerganov.com/ggml-model-whisper-base.en.bin"
# if (-Not(Test-Path -Path $filePath -PathType Leaf)) {
# Write-Host "ERROR: The file '$filePath' does not exist." -ForegroundColor Red
# Write-Host "Please download the file from the following URL:"
# Write-Host $downloadURL
# Write-Host "And place it under the path: $filePath"
# return;
# }
# Write-Host "Whisper model file found!" -ForegroundColor Green
# MSBuild.exe .\Echo.sln /t:Build /p:Configuration=Debug
Write-Host "Setup complete!" -ForegroundColor Green