Repository navigation
Releases: FideFeiPlane/dsh-auto-maximize
Releases · FideFeiPlane/dsh-auto-maximize
Release list
dsh-auto-maximize v1.2.0
Windows 新增进程内 FFI 策略:直接在 host 进程里调用 ShowWindowAsync(hwnd, SW_MAXIMIZE),不再 spawn PowerShell(实测 2.16s → 60~210ms);koffi 不可用时自动回退原 PowerShell 策略。新增 engine 配置(auto / ffi / powershell)。
诊断日志改为单文件、最新运行在最上面,保留最近 5 次启动,不再产生 <log>.old。
新增 scripts/verify-live.ps1:重挂载 bundle 即在当前进程重跑 apply(),验证不必重启 DSH。
安装
dsh plugin --profile desktop add https://gitee.com/FideFei/dsh-auto-maximize.git
附件 dsh-auto-maximize-1.2.0.tgz(35,308 B)
sha256 ddf725820643b046b9f323d903e5a0842d233c305d6130229e0698789c0a8028
sha1 363d8fb7fd1fc47c801102aff7eef55ffb321c3f
dsh-auto-maximize v1.1.6
v1.1.6 - 2026-10-14
变更
- Windows:PowerShell 候选改为按 PATH 解析(
pwsh→powershell),不再写死C:\Program Files\PowerShell\7\pwsh.exe——每台机器安装位置不同,写死路径可能失效。 - 诊断日志:改为只保留最近几次——每次启动把上一次日志轮转为
auto-maximize.log.old,只留「本次 + 最近一次」两份,不再按体积累积。 - 新增 Windows 回归测试(候选列表无写死路径、ShowWindow 脚本形态、日志轮转)。
Change
- Windows: resolve PowerShell via PATH (
pwsh→powershell) instead of the hardcodedC:\Program Files\PowerShell\7\pwsh.exe— install locations differ per machine, a fixed path can silently fail. - Diagnostic log: keeps only the recent runs — each startup rotates the previous log to
auto-maximize.log.old, retaining just "this run + the previous one" instead of growing by size. - New Windows regression tests (PATH-based candidates, ShowWindow script shape, log rotation).