mirror of
https://github.com/nyakang/nyaterm.git
synced 2026-11-07 00:07:20 +00:00
- Introduced `nyaterm-windows-rdp` for Windows Native RDP integration, detailing its architecture and isolation requirements. - Removed the `nyaterm-activex-helper` crate, including all related files and dependencies, to streamline the project and focus on modern RDP implementations. - Updated documentation in `AGENTS.md` to reflect these changes and clarify the new architecture. - Adjusted `Cargo.toml` and `Cargo.lock` to remove references to the deleted ActiveX helper and include the new RDP crate. - Enhanced CI workflows to configure MSVC for Windows builds, ensuring compatibility with the new RDP implementation.
14 lines
1.0 KiB
PowerShell
14 lines
1.0 KiB
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
|
|
$installation = & $vswhere -latest -products '*' -property installationPath
|
|
if (-not $installation) { throw 'Visual Studio installation not found' }
|
|
$components = @('Microsoft.VisualStudio.Component.VC.ATL', 'Microsoft.VisualStudio.Component.VC.ATL.ARM64', 'Microsoft.VisualStudio.Component.VC.Tools.ARM64')
|
|
$available = & $vswhere -latest -products '*' -requires $components -property installationPath
|
|
if (-not $available) {
|
|
$installer = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\setup.exe"
|
|
$arguments = @('modify', '--installPath', ('"' + $installation + '"'), '--quiet', '--norestart')
|
|
foreach ($component in $components) { $arguments += @('--add', $component) }
|
|
$process = Start-Process -FilePath $installer -ArgumentList $arguments -Wait -PassThru -WindowStyle Hidden
|
|
if ($process.ExitCode -notin @(0, 3010)) { throw "ATL installation failed: $($process.ExitCode)" }
|
|
}
|