mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
15 lines
499 B
Plaintext
Executable File
15 lines
499 B
Plaintext
Executable File
#!/usr/bin/env mew_js
|
|
|
|
@info("Writing editor configs");
|
|
|
|
const fontFamily = "'Mew Source SC', 'Source Code Pro', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace";
|
|
|
|
let configPath = @.fs.homePath(".config/wechat_devtools/Default/Editor/User/settings.json");
|
|
|
|
let config = JSON.parse(@.fs.readFile.sync(configPath, "utf8"));
|
|
|
|
config["editor.fontFamily"] = fontFamily;
|
|
|
|
@.fs.makeDirs(@.fs.dirname(configPath));
|
|
@.fs.writeFile.sync(configPath, JSON.stringify(config, null, 4));
|