# AsukulaTools **Repository Path**: lemtasev/AsukulaTools ## Basic Information - **Project Name**: AsukulaTools - **Description**: 集成日常工作所需要的一些小工具。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-09 - **Last Updated**: 2025-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 前言 吐槽:github实在是太慢了! # AsukulaTools > 集成日常工作所需要的一些小工具。 ## Build Setup ``` bash # install dependencies yarn # serve with hot reload at localhost:9080 yarn dev # build electron application for production yarn build # run unit & end-to-end tests yarn test # lint all JS/Vue component files in `src/` yarn lint ``` ## electron-builder config ``` "nsis": { "oneClick": false, // 是否一键安装 "allowElevation": true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。 "allowToChangeInstallationDirectory": true, // 允许修改安装目录 "installerIcon": "static/icons/icon.ico",// 安装图标 // "uninstallerIcon": "static/icons/icon.ico",//卸载图标 "installerHeaderIcon": "static/icons/icon.ico", // 安装时头部图标 "createDesktopShortcut": true, // 创建桌面图标 "createStartMenuShortcut": true,// 创建开始菜单图标 "shortcutName": "AsukulaTools" // 图标名称 // "include": "build/script/installer.nsh" // 包含的自定义nsis脚本 }, ``` 如果打包nsis报错,需要修改项目路径为英文,或者修改NsisTarget.js ``` //node_module/app-builder-lib/out/targets/nsis/NsisTarget.js async executeMakensis(defines, commands, script) { const args = this.options.warningsAsErrors === false ? [] : ["-WX"]; //此处新增 args.push("-INPUTCHARSET", "UTF8"); //结束 for (const name of Object.keys(defines)) { const value = defines[name]; if (value == null) { args.push(`-D${name}`); } else { args.push(`-D${name}=${value}`); } } } ``` ---