买服务器上雨云
由超大带宽雨云提供赞助Download and install Node.js v22.x.x
corepack enable
corepack prepare pnpm@10.27.0 --activatepnpm installcp .env.example .envpnpm devpnpm debugThen input chrome://inspect in browser
pnpm test# For windows
$ pnpm build:win
# For macOS
$ pnpm build:mac
# For Linux
$ pnpm build:linuxelectron-builder.yml file electronDownload field."electron":"~22.3.27"4.x.1.0.0-rc.12."puppeteer-core":"~21.3.8", "puppeteer-in-electron":"^3.0.5"."npm": "7.24.2" After that, the call npm command is no longer supported.monaco-editor unable to paste win.webContents.paste(), this option listens to ctrl+v will cause the normal input box to repeat the paste, it is recommended to listen to other shortcuts will be normal (adapted from user's habit).editor.addAction or editor.onKeyDown listens to keyboard press event, this option need to manually write the logic, only the editor body paste effective."monaco-editor":"^0.45.0" and below, refer to issueElectron configuration nodeIntegration: true and contextIsolation: false will cause paste to fail, configure parameter to be reversed.child_process description \r\n for windows, \n for mac and linux.windows execution result is garbled, need chcp 65001 to set encoding, such as get directory data chcp 65001 | dir (| role is to execute dir inherits utf-8 encoding from chcp 65001)"electron-builder":"^25.1.8" fail to start child_process after packaging.FileSystemAccessAPI is limited by browser sandbox, cannot access system directory.dialog method provided by Electron with fs.