Skip to content

v1.3.0 — Windows 兼容

Choose a tag to compare

@AB-png123 AB-png123 released this 27 Oct 11:58
· 14 commits to main since this release

Windows 支持

  • 新增 PowerShell 入口 scripts/run-import.ps1(Windows PowerShell 5.1+ / PowerShell 7),Windows 上不再需要 bash 或 Git Bash。
  • 优先读取 Hao Wallpaper 元数据里的 localPath:壁纸库不在默认目录也能导入,目录扫描只作兜底。
  • 自动探测 Windows 默认目录(%APPDATA%\Hao Wallpaper、%USERPROFILE%\Desktop\数据\壁纸)与 DSH 壁纸引擎目录(%USERPROFILE%\.dsh-wallpaper-engine),并支持 HAO_WALLPAPER_DIRS、HAO_WALLPAPER_DATA_DIR 等环境变量覆盖。
  • 插件按平台选择入口:macOS/Linux 用 run-import.sh,Windows 用 powershell.exe -File run-import.ps1。
  • 12 个测试;CI 在 Ubuntu 与 Windows 上运行,包含 PowerShell 语法检查和 Windows 上的真实冒烟测试。

macOS 行为与 1.2.0 一致。

安装

dsh plugin --profile desktop add github:AB-png123/dshplugin#v1.3.0

重启 DSH 后生效。也可以直接安装下载的 tgz:

dsh plugin --profile desktop add ./dsh-hao-import-1.3.0.tgz

Full Changelog: v1.2.0...v1.3.0