diff --git a/winfsp-tests/.gitignore b/winfsp-tests/.gitignore new file mode 100644 index 0000000..353f58e --- /dev/null +++ b/winfsp-tests/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!config.json +!install.ps1 diff --git a/winfsp-tests/config.json b/winfsp-tests/config.json new file mode 100644 index 0000000..4f5714c --- /dev/null +++ b/winfsp-tests/config.json @@ -0,0 +1,11 @@ +{ + "download_url": "https://github.com/billziss-gh/winfsp/releases/download/v1.6/winfsp-tests-1.6.20027.zip", + "file_name": "winfsp-tests-1.6.20027.zip", + "install_cmd": "powershell", + "install_args": "-ExecutionPolicy Bypass -File @sw_path@\\install.ps1 -zipPath @sw_path@\\@file_name@", + "install_dest": "client", + "install_time": { + "kit": "after", + "driver": "before" + } +} diff --git a/winfsp-tests/install.ps1 b/winfsp-tests/install.ps1 new file mode 100644 index 0000000..f66ab66 --- /dev/null +++ b/winfsp-tests/install.ps1 @@ -0,0 +1,17 @@ +# Install winfsp-tests into the WinFsp bin directory. +param( + [Parameter(Mandatory = $true)] + [String]$zipPath +) + +$ErrorActionPreference = 'Stop' + +$extractFolder = Join-Path $env:TEMP 'winfsp-tests' +$binDir = 'C:\Program Files (x86)\WinFsp\bin' +$exeName = 'winfsp-tests-x64.exe' + +Expand-Archive -Force -Path $zipPath -DestinationPath $extractFolder +New-Item -ItemType Directory -Force -Path $binDir | Out-Null +Copy-Item -Force (Join-Path $extractFolder $exeName) (Join-Path $binDir $exeName) + +Write-Output "Installed $exeName to $binDir"