- vscode
- npm
- node.js
- git
大陆用户为了方便访问 GitHub,可以使用Watt Toolkit进行免费的 GitHub 加速。
建议使用pnpm
作为包管理工具,同时设置镜像源为 npmmirror.com:
pnpm config set registry https://registry.npmmirror.com/
设置 Electron 的镜像源:
pnpm config set electron_mirror https://npmmirror.com/mirrors/electron/
克隆项目到本地:
git clone https://github.com/xushengfeng/eSearch.git
# 如果不需要代码回溯
git clone --depth=1 https://github.com/xushengfeng/eSearch.git
使用 vscode 打开eSearch
文件夹,安装依赖:
pnpm install
运行:
pnpm run start
由于我还没配置好 vite 下调试带有.node
的库,所以无法使用pnpm run dev
。
打包:
pnpm run pack
编译:
pnpm run dist
打包后的文件位于build
文件夹下,已经有可执行文件,编译则生成安装包。