flclash@0.8.95: Avoid overwriting existing manifest.json - #18531
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe FlClash manifest now extracts files into the Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This localized manifest change is merge-ready after normal checks and review; no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/verify |
|
All changes look good. Wait for review from human collaborators. flclash
|
|
Thanks for help! And for a clear uninstallation, I suggest use Start-Process powershell -Verb RunAs -ArgumentList "sc.exe stop FlClashHelperService | Out-Null; sc.exe delete FlClashHelperService | Out-Null" |
I understand this makes updating and uninstalling more seamless, but I personally don't recommend putting Stop-Process, Stop-Service, or registry/service deletions in the manifest for a couple of reasons:
These features should ideally be implemented in Scoop-Core with configurable options. Unfortunately, it looks unlikely to happen in the short term. Edit: By the way, there is an existing |
IMHO, this is a fair argument in terms of this particular manifest. |
My fault, I miss typed "uninstaller script" to "install script" And with the script, we can control whether to print the message if (-not (Get-Service -Name "FlClashHelperService" -ErrorAction SilentlyContinue)) { return } |
I agree that we should not do this for users, especially which requires admin privilege, I'm just suggesting to change the time when the notes content shown, and expand the command in the notes to enable cleaning up resident services after uninstallation. I might haven't clearly express it |
By "controversy" I mean not everyone would agree on an elevated uninstaller script. |
I agree with your opinion, I'm also obeying the rule that script should not involved in elevated privileges so I'm just suggesting "print the notes here" not "execute it for user", users own the choice. My apologies here if I've bothered you. |
flclash v0.8.95 introduced a new manifest.json, which is now crucial to running FlclashHelperService.
I believe we need a subfolder to hold flclash files, just like trae and vnote
And the flexible path trick doesn't work for v0.8.95 any more, so notes were modified.
<manifest-name[@version]|chore>: <general summary of the pull request>