mirror of
https://github.com/onyx-and-iris/nvda-addon-voicemeeter.git
synced 2024-11-15 15:00:47 +00:00
25 lines
577 B
PowerShell
25 lines
577 B
PowerShell
|
param(
|
||
|
[switch]$build
|
||
|
)
|
||
|
|
||
|
function Copy-FilestoScratchpad {
|
||
|
$source = Join-Path $PSScriptRoot "addon" "globalPlugins" "voicemeeter"
|
||
|
$target = Join-Path $env:appdata "nvda" "scratchpad" "globalPlugins"
|
||
|
Copy-Item -Path $source -Destination $target -Recurse -Force
|
||
|
}
|
||
|
|
||
|
function main {
|
||
|
"Copying files to Scratchpad" | Write-Host
|
||
|
Copy-FilestoScratchpad
|
||
|
|
||
|
if ($build) {
|
||
|
Invoke-Expression ".venv/Scripts/Activate.ps1"
|
||
|
|
||
|
"Building add-on" | Write-Host
|
||
|
scons
|
||
|
|
||
|
deactivate
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if ($MyInvocation.InvocationName -ne '.') { main }
|