codepet 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/codepet.js +1 -1
- package/package.json +1 -1
package/bin/codepet.js
CHANGED
|
@@ -486,7 +486,7 @@ function doPopup() {
|
|
|
486
486
|
// Windows: 弹新 PowerShell 窗口,自动开启 ANSI 彩色支持
|
|
487
487
|
const script = path.join(__dirname, '..', 'scripts', 'polaroid.py').replace(/\\/g, '/');
|
|
488
488
|
const enableAnsi = `[Console]::OutputEncoding=[Text.Encoding]::UTF8; $Host.UI.RawUI.WindowTitle='📸 Ai小蓝鲸照相馆'; Set-ItemProperty HKCU:\\\\Console VirtualTerminalLevel -Type DWORD -Value 1 -ErrorAction SilentlyContinue;`;
|
|
489
|
-
const psCmd = `${enableAnsi} ${PYTHON} '${script}' ${pet.character} ${scene} 40 2>$null; Read-Host
|
|
489
|
+
const psCmd = `${enableAnsi} ${PYTHON} '${script}' ${pet.character} ${scene} 40 2>$null; Read-Host`;
|
|
490
490
|
execSync(`start powershell -NoProfile -Command "${psCmd}"`, { shell: true, stdio: 'ignore' });
|
|
491
491
|
} else {
|
|
492
492
|
// Linux: 尝试终端弹窗
|