mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 18:26:26 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d98f0cb03 | ||
|
|
3503233631 | ||
|
|
c39393c453 | ||
|
|
8e1bf48cd1 | ||
|
|
8dd82e1a3b | ||
|
|
564cc80ef7 | ||
|
|
77f7144fbf |
@@ -17,3 +17,4 @@ deploy:
|
||||
script: if [ ${TRAVIS_NODE_VERSION} = "stable" ];then docker run -v $(pwd):$(pwd) -t snapcore/snapcraft sh -c "apt update -qq
|
||||
&& cd $(pwd) && snapcraft && snapcraft push *.snap --release edge"; fi
|
||||
skip_cleanup: true
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ module.exports = function (grunt) {
|
||||
var initConfig = {
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
'create-windows-installer': {
|
||||
x64: {
|
||||
ia32: {
|
||||
appDirectory: path.join(__dirname, 'dist', 'Boostnote-win32-x64'),
|
||||
outputDirectory: path.join(__dirname, 'dist'),
|
||||
authors: 'MAISIN&CO., Inc.',
|
||||
@@ -109,7 +109,7 @@ module.exports = function (grunt) {
|
||||
var done = this.async()
|
||||
var opts = {
|
||||
name: 'Boostnote',
|
||||
arch: 'x64',
|
||||
arch: 'ia32',
|
||||
dir: __dirname,
|
||||
version: grunt.config.get('pkg.config.electron-version'),
|
||||
'app-version': grunt.config.get('pkg.version'),
|
||||
|
||||
@@ -40,20 +40,16 @@ mainWindow.webContents.sendInputEvent({
|
||||
keyCode: '\u0008'
|
||||
})
|
||||
|
||||
if (process.platform !== 'linux' || process.env.DESKTOP_SESSION === 'cinnamon') {
|
||||
if (process.platform === 'darwin' || process.env.DESKTOP_SESSION === 'cinnamon') {
|
||||
mainWindow.on('close', function (e) {
|
||||
e.preventDefault()
|
||||
if (process.platform === 'win32') {
|
||||
quitApp()
|
||||
} else {
|
||||
if (mainWindow.isFullScreen()) {
|
||||
mainWindow.once('leave-full-screen', function () {
|
||||
mainWindow.hide()
|
||||
})
|
||||
mainWindow.setFullScreen(false)
|
||||
} else {
|
||||
if (mainWindow.isFullScreen()) {
|
||||
mainWindow.once('leave-full-screen', function () {
|
||||
mainWindow.hide()
|
||||
}
|
||||
})
|
||||
mainWindow.setFullScreen(false)
|
||||
} else {
|
||||
mainWindow.hide()
|
||||
}
|
||||
})
|
||||
|
||||
@@ -66,9 +62,6 @@ if (process.platform !== 'linux' || process.env.DESKTOP_SESSION === 'cinnamon')
|
||||
})
|
||||
}
|
||||
mainWindow.on('resize', _.throttle(storeWindowSize, 500))
|
||||
function quitApp () {
|
||||
app.quit()
|
||||
}
|
||||
|
||||
function storeWindowSize () {
|
||||
try {
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
"codemirror-mode-elixir": "^1.1.1",
|
||||
"electron-config": "^0.2.1",
|
||||
"electron-gh-releases": "^2.0.2",
|
||||
"electron-windows-installer": "^1.7.8",
|
||||
"flowchart.js": "^1.6.5",
|
||||
"font-awesome": "^4.3.0",
|
||||
"immutable": "^3.8.1",
|
||||
@@ -113,6 +114,7 @@
|
||||
"faker": "^3.1.0",
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-electron-installer": "2.1.0",
|
||||
"gulp": "^3.9.1",
|
||||
"history": "^1.17.0",
|
||||
"jsdom": "^9.4.2",
|
||||
"json-loader": "^0.5.4",
|
||||
|
||||
@@ -38,11 +38,6 @@ var config = Object.assign({}, skeleton, {
|
||||
'NODE_ENV': JSON.stringify('production'),
|
||||
'BABEL_ENV': JSON.stringify('production')
|
||||
}
|
||||
}),
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
compressor: {
|
||||
warnings: false
|
||||
}
|
||||
})
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user