18 Star 223 Fork 42

fehey / gridea

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
fehey 提交于 2020-01-20 15:22 . update vue electron plugin version
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
css: {
loaderOptions: {
less: {
import: [
resolve('src/assets/styles/var.less'),
],
modifyVars: {
'btn-height-base': '30px',
'input-height-base': '30px',
},
javascriptEnabled: true,
},
},
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
builderOptions: {
productName: 'Gridea',
win: {
icon: './public/app-icons/gridea.ico',
// target: [
// {
// target: 'nsis',
// arch: [
// 'ia32',
// 'x64',
// ],
// },
// ],
},
mac: {
icon: './public/app-icons/gridea.icns',
},
linux: {
icon: './public/app-icons/gridea.png',
target: [
{
target: 'AppImage',
},
{
target: 'deb',
},
{
target: 'snap',
},
],
},
asar: false,
nsis: {
oneClick: false, // 是否一键安装
allowElevation: true, // 允许请求提升。 如果为false,则用户必须使用提升的权限重新启动安装程序。
allowToChangeInstallationDirectory: true, // 允许修改安装目录
createDesktopShortcut: true, // 创建桌面图标
createStartMenuShortcut: true, // 创建开始菜单图标
shortcutName: 'Gridea', // 图标名称
},
publish: ['github'],
},
// mainProcessWatch: [
// 'src/server/**/*',
// ],
},
},
}
TypeScript
1
https://gitee.com/fehey/gridea.git
git@gitee.com:fehey/gridea.git
fehey
gridea
gridea
master

搜索帮助