mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 05:05:44 +08:00
This commit enables source maps in napcat-shell's Vite config for better debugging, adds source map path overrides to VSCode settings, and updates nodeTest.ps1 to launch with the Node.js inspector. The autoIncludeTSPlugin transform now returns a source map for improved breakpoint support in VSCode. Also adds a sources.txt file listing project and dependency sources.
9 lines
398 B
PowerShell
9 lines
398 B
PowerShell
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
|
$regPath = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ'
|
|
$uninstall = (Get-ItemProperty -Path $regPath -Name UninstallString -ErrorAction Stop).UninstallString
|
|
$uninstall = $uninstall.Trim('"')
|
|
$qqPath = Split-Path $uninstall -Parent
|
|
|
|
Write-Host "QQPath: $qqPath"
|
|
node.exe --inspect "./loadNapCat.cjs" "$qqPath"
|