Spring Boot 3.5.6 / Java 17 JAR with cloud gateway envelope and ping/whoami/echo; Taobao gateway signature verification matching the Node implementation; /pages/mvp page, splash dev entry and local transport contract test; SAE + 聚石塔 runbook and portable JDK/Maven setup; Windows 11 wmic shim for Taobao DevTools.
45 lines
1.7 KiB
PowerShell
45 lines
1.7 KiB
PowerShell
# Fix Taobao DevTools on Windows 11 24H2+:
|
|
# install miniapp extension fail: Error: Command failed: wmic path win32_VideoController get caption
|
|
#
|
|
# Windows 11 24H2 removed wmic.exe. Taobao DevTools still calls it during
|
|
# extension installation. This creates a small user-level wmic.cmd shim in a
|
|
# directory that is already on the user PATH (%USERPROFILE%\.local\bin).
|
|
# No administrator rights are required.
|
|
#
|
|
# Run:
|
|
# powershell -ExecutionPolicy Bypass -File D:\juzi\tools\fix-taobao-ide-wmic.ps1
|
|
# Then fully quit and reopen Taobao DevTools.
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
$bin = Join-Path $env:USERPROFILE '.local\bin'
|
|
New-Item -ItemType Directory -Force $bin | Out-Null
|
|
$shim = Join-Path $bin 'wmic.cmd'
|
|
|
|
$content = @'
|
|
@echo off
|
|
setlocal
|
|
if /i "%~1"=="path" if /i "%~2"=="win32_VideoController" if /i "%~3"=="get" if /i "%~4"=="caption" (
|
|
powershell.exe -NoProfile -NonInteractive -Command "Get-CimInstance Win32_VideoController | Select-Object -ExpandProperty Caption"
|
|
exit /b 0
|
|
)
|
|
if /i "%~1"=="os" if /i "%~2"=="get" if /i "%~3"=="locale" (
|
|
powershell.exe -NoProfile -NonInteractive -Command "[System.Globalization.CultureInfo]::CurrentCulture.LCID.ToString('X4')"
|
|
exit /b 0
|
|
)
|
|
exit /b 0
|
|
'@
|
|
|
|
Set-Content -Path $shim -Value $content -Encoding ASCII
|
|
Write-Host "Created: $shim"
|
|
|
|
$video = & $shim path win32_VideoController get caption
|
|
Write-Host ("GPU: " + ($video -join ', '))
|
|
|
|
$locale = & $shim os get locale
|
|
Write-Host "Locale: $locale"
|
|
|
|
Write-Host ''
|
|
Write-Host 'Done. Fully quit Taobao DevTools (no Taobao DevTools process left in Task Manager), then reopen it.'
|
|
Write-Host 'Permanent alternative (elevated PowerShell): DISM /Online /Add-Capability /CapabilityName:WMIC~~~~'
|