Skip to content

Commit

Permalink
Added snap to linux distribution [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
006627 committed Oct 1, 2019
1 parent c843a5e commit 5033a6f
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 210 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ matrix:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
- os: linux
dist: xenial
services: docker
language: generic

Expand Down Expand Up @@ -44,5 +45,12 @@ deploy:
skip_cleanup: true
on:
all_branches: true
- provider: snap
snap: dist/dbvtk*.snap
channel: stable
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
15 changes: 15 additions & 0 deletions app/components/application-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,21 @@ module.exports = class ApplicationMenu {
shell.openExternal('https://visualization.database-preservation.com/')
}
},
{
label: 'Toggle Developer Tools',
accelerator: (() => {
if (process.platform === 'darwin') {
return 'Alt+Command+I'
} else {
return 'Ctrl+Shift+I'
}
})(),
click: (item, focusedWindow) => {
if (focusedWindow) {
focusedWindow.toggleDevTools()
}
}
},
]
}

Expand Down
3 changes: 3 additions & 0 deletions app/components/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ autoUpdater.on('update-downloaded', () => {
})

module.exports.checkForUpdates = function (window) {
if(process.env.SNAP){
return
}
focusedWindow = window
autoUpdater.checkForUpdates()
}
Expand Down
Loading

0 comments on commit 5033a6f

Please sign in to comment.