build: ubuntu build
parent
6586b67249
commit
7348704672
|
@ -215,7 +215,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
speedTest: {
|
speedTest: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
interval: 160000,
|
interval: 60000,
|
||||||
hostnameList: ['github.com'],
|
hostnameList: ['github.com'],
|
||||||
dnsProviders: ['usa', 'quad9', 'rubyfish']
|
dnsProviders: ['usa', 'quad9', 'rubyfish']
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,8 @@ const executor = {
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
async linux (exec, { port }) {
|
async linux (exec, { port }) {
|
||||||
throw Error('暂未实现此功能')
|
await exec('kill `lsof -i:' + port + " |grep 'dev-sidecar\\|electron' |awk '{print $2}'`")
|
||||||
|
return true
|
||||||
},
|
},
|
||||||
async mac (exec, { port }) {
|
async mac (exec, { port }) {
|
||||||
await exec('kill `lsof -i:' + port + " |grep 'DevSide\\|Elect' |awk '{print $2}'`")
|
await exec('kill `lsof -i:' + port + " |grep 'DevSide\\|Elect' |awk '{print $2}'`")
|
||||||
|
|
|
@ -34,6 +34,7 @@ function setTray (app) {
|
||||||
// 系统托盘图标目录
|
// 系统托盘图标目录
|
||||||
label: '退出',
|
label: '退出',
|
||||||
click: () => {
|
click: () => {
|
||||||
|
console.log('force quit')
|
||||||
forceClose = true
|
forceClose = true
|
||||||
quit(app)
|
quit(app)
|
||||||
}
|
}
|
||||||
|
@ -83,7 +84,7 @@ function isLinux () {
|
||||||
function hideWin () {
|
function hideWin () {
|
||||||
if (win) {
|
if (win) {
|
||||||
if (isLinux()) {
|
if (isLinux()) {
|
||||||
win.minimize()
|
quit(app)
|
||||||
} else {
|
} else {
|
||||||
win.hide()
|
win.hide()
|
||||||
}
|
}
|
||||||
|
@ -193,6 +194,7 @@ if (!isFirstInstance) {
|
||||||
|
|
||||||
// Quit when all windows are closed.
|
// Quit when all windows are closed.
|
||||||
app.on('window-all-closed', () => {
|
app.on('window-all-closed', () => {
|
||||||
|
console.log('window-all-closed')
|
||||||
// On macOS it is common for applications and their menu bar
|
// On macOS it is common for applications and their menu bar
|
||||||
// to stay active until the user quits explicitly with Cmd + Q
|
// to stay active until the user quits explicitly with Cmd + Q
|
||||||
if (process.platform !== 'darwin') {
|
if (process.platform !== 'darwin') {
|
||||||
|
|
|
@ -58,11 +58,18 @@ module.exports = {
|
||||||
allowToChangeInstallationDirectory: true
|
allowToChangeInstallationDirectory: true
|
||||||
},
|
},
|
||||||
mac: {
|
mac: {
|
||||||
icon: 'build/mac/icon.icns'
|
icon: './build/mac/icon.icns'
|
||||||
},
|
},
|
||||||
win: {
|
win: {
|
||||||
requestedExecutionLevel: 'requireAdministrator'
|
requestedExecutionLevel: 'requireAdministrator'
|
||||||
},
|
},
|
||||||
|
icon: './build/icons/512x512.png',
|
||||||
|
linux: {
|
||||||
|
icon: './build/icons/',
|
||||||
|
target: [
|
||||||
|
'AppImage'
|
||||||
|
]
|
||||||
|
},
|
||||||
publish: {
|
publish: {
|
||||||
provider: 'generic',
|
provider: 'generic',
|
||||||
url: 'http://dev-sidecar.docmirror.cn/update/'
|
url: 'http://dev-sidecar.docmirror.cn/update/'
|
||||||
|
|
Loading…
Reference in New Issue