18 lines
1.1 KiB
PowerShell
18 lines
1.1 KiB
PowerShell
param([Parameter(Mandatory)][string]$Destination)
|
|
$ErrorActionPreference = 'Stop'
|
|
$root = Split-Path $PSScriptRoot -Parent
|
|
# Reuse the pinned upstream SHA-256 and publisher signature checks. This does
|
|
# not install the driver and never requests elevation during packaging.
|
|
& (Join-Path $PSScriptRoot 'install-windows-usb.ps1')
|
|
if (-not $?) { throw 'USBip installer verification failed' }
|
|
$drivers = Join-Path $Destination 'drivers'
|
|
New-Item -ItemType Directory -Path $drivers -Force | Out-Null
|
|
Copy-Item -LiteralPath (Join-Path $root 'work/USBip-0.9.8.1-x64.exe') -Destination $drivers -Force
|
|
@(
|
|
'USBip 0.9.8.1 x64, upstream usbip-win2 by Cloudyne Systems (Scheibling Consulting AB).',
|
|
'Source: https://github.com/vadimgrn/usbip-win2/releases/tag/v.0.9.8.1',
|
|
'This is an unmodified, signed optional installer. It is not installed by the ADS installer.',
|
|
'Select USB mode in ADS, then confirm driver installation and the Windows UAC prompt.',
|
|
'Driver installation can briefly restart USB hubs and may require a Windows reboot.'
|
|
) | Set-Content -LiteralPath (Join-Path $drivers 'README.txt') -Encoding utf8
|