Repository navigation
Conversation
- version 0.4.5 -> 0.5.2; url, sha256, size and releaseDate regenerated from the v0.5.2 asset - minWinShun 0.22.0 -> 0.33.0, taken from the package manifest (file-menu switch needs it) - entry now carries the release notes
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
这个 PR 做什么
收录
ra9fael.rename0.5.2,类别为review: unreviewed-native。Win顺 的批量重命名插件:对选中的项目用规则链或文本缓冲区(oil 模式,支持 Vim 按键)预览并改名;单文件改名用 Win顺 自带的 F2。原生 C++ 常驻插件(Qt Widgets 窗口),不联网、不启动包外程序、不申请提权。
177ebb2a43704697f5946754ff34f100b42ea8e33ab2a88e20b6d82d1b5fa05b(3629738 字节)构建和验证
正式包由 GitHub Actions 从 v0.5.2 tag 构建并发布(windows-2022,MSVC x64 Release,Qt 6.12.0):https://github.com/ra9fael/winshun-rename/actions/runs/44406201513 ——
build、publish两个任务全部成功。构建任务内完成 tag/清单/CHANGELOG 一致性校验、配置、编译、跑测试、把Qt6Widgets.dll放在rename.exe旁、打包、核对包就是本插件本版本,并写出校验和与 Release 说明;发布任务只上传已核对的产物。本机
python tools/check.py --pr upstream/main:1 个条目、0 处错误;3 条警告为未审核原生提示与既有br/rename/批量重命名/pl关键字撞车。--online ra9fael.rename重新下载正式包核对哈希、大小、最低宿主与权限,同样通过。0.5.0 起:文件结果右键菜单出现“批量重命名…”由清单
triggers.files.if指向设置项showInFileMenu控制,这要求 WinShun 0.33.0,因此minWinShun从 0.22.0 提到 0.33.0(该值由包清单带出,未手改);右键入口的选中集语义改为“选中的项目就是输入集”——单文件是一行批次,单文件夹改的是这个文件夹本身,文件夹内容走“在此文件夹批量重命名…”;跨目录可以一起改,同名与占位只在同一目录内判定;选择集里有读不到的路径时窗口为空并说明原因。0.5.1 让文本 tab 在回到上一级、刷新或换文件夹后仍留在文本 tab。0.5.2 只把包内 README 与本版对齐,代码与 0.5.1 相同。未逐项真机验收:右键入口在各类选择集(单文件、单文件夹、多选、跨盘批次)下的手感,以及元数据模板对 EXIF/XMP 的实际读写;这些只在固定测试样本上覆盖。
权限
ui:插件自己的窗口——文件表格、规则栏、文本缓冲区(oil 模式)与确认/进度对话框。files:read:列出选中目录的子项、读文件名与大小/写入时间属性(改名前后核对文件身份),以及元数据模板用到的图片元数据(EXIF/XMP,只对 jpg/jpeg/png/tif/tiff/heic/heif/avif 八种扩展名,先按扩展名筛选再读)。files:write:改名本身;删除经 ShellIFileOperation移入回收站。不覆盖冲突,不递归改目录。不联网,不申请
processes、network、elevated。正式包的权限清单:
运行方式:
{ "mode": "resident", "program": "rename.exe" }包里另按清单声明
runtime.qt: host(Qt 6.12),Qt Widgets 的Qt6Widgets.dll随包。自查
.wsplugin(自建发布工作流,从 tag 构建、测试、打包、附校验和)。tools/entry.py从 Release 附件生成,生成字段未手改。plugins/ra9fael.rename.json。ui、files:read、files:write),README 与本 PR 均有说明。plugin.json写了author: ra9fael、license: MIT,包内含 LICENSE 文件,代码我有权按 MIT 放出。minWinShun0.33.0 与右键菜单开关的要求一致;更低宿主的 WinShun 不会安装这个条目。