@@ -13,12 +13,12 @@ function Build {
1313 Ignore- Thirdparty- InvalidFile
1414 poetry build
1515 if ($LASTEXITCODE -ne 0 ) {
16- SpeechBox .Log.Fatal " failed to run poetry build."
16+ VoxBox .Log.Fatal " failed to run poetry build."
1717 }
1818
1919 $whlFiles = Get-ChildItem - Path $distDir - Filter " *.whl" - File
2020 if ($whlFiles.Count -eq 0 ) {
21- SpeechBox .Log.Fatal " no wheel files found in $distDir "
21+ VoxBox .Log.Fatal " no wheel files found in $distDir "
2222 }
2323
2424 foreach ($whlFile in $whlFiles ) {
@@ -28,7 +28,7 @@ function Build {
2828 $newFilePath = Join-Path - Path $distDir - ChildPath $newName
2929 Remove-Item - Path $newFilePath - Force - ErrorAction SilentlyContinue
3030 Rename-Item - Path $whlFile.FullName - NewName $newFilePath - Force
31- SpeechBox .Log.Info " renamed $orginalName to $newName "
31+ VoxBox .Log.Info " renamed $orginalName to $newName "
3232 }
3333}
3434
@@ -42,8 +42,8 @@ function Set-Version {
4242 $gitCommit = if ($null -ne $global :GIT_COMMIT ) { $global :GIT_COMMIT } else { " HEAD" }
4343 $gitCommitShort = $gitCommit.Substring (0 , [Math ]::Min(7 , $gitCommit.Length ))
4444
45- SpeechBox .Log.Info " setting version to $version "
46- SpeechBox .Log.Info " setting git commit to $gitCommitShort "
45+ VoxBox .Log.Info " setting version to $version "
46+ VoxBox .Log.Info " setting git commit to $gitCommitShort "
4747
4848 # Replace the __version__ variable in the __init__.py file
4949 $fileContent = Get-Content - Path $versionFile
@@ -60,21 +60,21 @@ function Restore-Version-File {
6060
6161 git checkout -- $versionFile
6262 if ($LASTEXITCODE -ne 0 ) {
63- SpeechBox .Log.Fatal " failed restore version file."
63+ VoxBox .Log.Fatal " failed restore version file."
6464 }
6565}
6666
6767#
6868# main
6969#
7070
71- SpeechBox .Log.Info " +++ BUILD +++"
71+ VoxBox .Log.Info " +++ BUILD +++"
7272try {
7373 Install-Dependency
7474 Set-Version
7575 Build
7676 Restore-Version - File
7777} catch {
78- SpeechBox .Log.Fatal " failed to build: $ ( $_.Exception.Message ) "
78+ VoxBox .Log.Fatal " failed to build: $ ( $_.Exception.Message ) "
7979}
80- SpeechBox .Log.Info " --- BUILD ---"
80+ VoxBox .Log.Info " --- BUILD ---"
0 commit comments