Repository navigation
便携版改用上游实现,BotArk-Data 自动改名为 BotArkData - #38
Merged
Merged
Conversation
- goxfPortable.ts 改为调用上游 resolveUserDataDir(--user-data-dir / BotArkData / .botark-portable),仍是第一个 import,并锁 sessionData;index.ts 去掉重复判定。 - 新增 goxfPortableMigrate.ts:启动时把旧 BotArk-Data 原地改名为 BotArkData(新目录不存在或只有 README 时);两边都有数据不动;改名失败本次用旧目录。 - 更新器、更新助手、清单脚本过渡期两个名字都当数据目录;zip 包改放 .botark-portable 标记。 - 仅 Windows 便携构建启用自更新(PORTABLE_DIR)。
GOXF
force-pushed
the
goxf/upstream-portable
branch
from
November 30, 2026 14:26
43969c6 to
ec6c9b7
Compare
GOXF
marked this pull request as ready for review
November 30, 2026 14:26
GOXF
added a commit
that referenced
this pull request
Nov 30, 2026
Owner
Author
|
开发机真机验证(2026-11-30 23:50 北京,测试版 v0.18.0-goxf.dev.73446a3 zip,单独目录 C:\hark-work\test-0180,未碰用户在用的 BotArk):解压后只有 .botark-portable + BotArk.exe;放一个带标记文件的旧 BotArk-Data 后启动 → 变成 BotArkData,标记文件还在,写入「从 BotArk-Data 改名而来.txt」,perf.log、Local Storage 等都在里面。测完只结束测试目录里的进程并删除目录。未测:从旧版经自更新升上来、真实账号会话。 |
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.
依赖 #37(先合 #37,本 PR 再改 base 为 goxf/portable)。
改了什么
portableDataDir.ts:--user-data-dir> 程序旁BotArkData>.botark-portable标记。goxfPortable.ts变成薄壳,仍是 index.ts 第一个 import,并锁 sessionData。goxfPortableMigrate.ts:启动时把旧BotArk-Data原地改名为BotArkData,写说明文件「从 BotArk-Data 改名而来.txt」。规则:新目录不存在或只有 README 才改;两边都有数据不动(用新的);改名失败本次直接用旧目录。.botark-portable标记,不再带空数据文件夹。回退
退回 v0.17.1-goxf 及更早:先退出,把
BotArkData改回BotArk-Data。进度与交接