mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
18 lines
474 B
Plaintext
18 lines
474 B
Plaintext
#!/usr/bin/env mew_js
|
|
|
|
@info("Patching editor selection copy configs");
|
|
|
|
let configPath = @.fs.homePath(".config/wechat_devtools/Default/Editor/User/settings.json");
|
|
let config = undefined;
|
|
if (@.fs.exists.file(configPath)) {
|
|
config = JSON.parse(@.fs.readFile.sync(configPath, "utf8"));
|
|
} else {
|
|
config = {};
|
|
}
|
|
|
|
config["editor.selectionClipboard"] = false;
|
|
|
|
@.fs.makeDirs(@.fs.dirname(configPath));
|
|
|
|
@.fs.writeFile.sync(configPath, JSON.stringify(config, null, 4));
|