diff --git a/package.json b/package.json index 7a24765fd..28f8b7274 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "bugs": { "url": "https://github.com/nylas/N1/issues" }, - "electronVersion": "0.35.4", + "electronVersion": "0.36.2", "dependencies": { "async": "^0.9", "atom-keymap": "^6.1.1", diff --git a/script/bootstrap b/script/bootstrap index 3ee0b0d55..3a4fa3844 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -48,7 +48,7 @@ function makeSqlite3Command() { // Use our local version of npm (npm 3x) to build sqlite var npmPath = '"' + path.resolve(__dirname, '..', 'build', 'node_modules', '.bin', 'npm') + '"'; - return npmPath + " install https://github.com/bengotow/node-sqlite3/archive/bengotow/usleep.tar.gz --ignore-scripts && cd node_modules/sqlite3 && "+nodeGypPath+" configure rebuild --target="+targetElectronVersion+" --arch="+targetArch+" --target_platform="+targetPlatform+" --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/node-v46-"+targetPlatform+"-"+targetArch + return npmPath + " install https://github.com/bengotow/node-sqlite3/archive/bengotow/usleep.tar.gz --ignore-scripts && cd node_modules/sqlite3 && "+nodeGypPath+" configure rebuild --target="+targetElectronVersion+" --arch="+targetArch+" --target_platform="+targetPlatform+" --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/node-v47-"+targetPlatform+"-"+targetArch } function bootstrap() { diff --git a/spec/spec-bootstrap.coffee b/spec/spec-bootstrap.coffee index 4ccccee80..a5821399a 100644 --- a/spec/spec-bootstrap.coffee +++ b/spec/spec-bootstrap.coffee @@ -1,5 +1,5 @@ # Start the crash reporter before anything else. -require('crash-reporter').start(productName: 'N1', companyName: 'Nylas') +# require('crash-reporter').start(productName: 'N1', companyName: 'Nylas') path = require 'path' diff --git a/src/browser/window-manager.coffee b/src/browser/window-manager.coffee index 8948cfe26..8b03ff428 100644 --- a/src/browser/window-manager.coffee +++ b/src/browser/window-manager.coffee @@ -85,6 +85,7 @@ class WindowManager center: true width: 640 height: 396 + minHeight: 396 resizable: false ### diff --git a/src/nylas-env.coffee b/src/nylas-env.coffee index 68b86da8f..05ebb673f 100644 --- a/src/nylas-env.coffee +++ b/src/nylas-env.coffee @@ -654,18 +654,16 @@ class NylasEnvConstructor extends Model @deserializeSheetContainer() @packages.activate() @keymaps.loadUserKeymap() - @requireUserInitScript() unless safeMode @menu.update() - @showRootWindow() - - ipcRenderer.send('window-command', 'window:loaded') - - showRootWindow: -> + @getCurrentWindow().hide() document.getElementById("application-loading-cover").remove() document.body.classList.add("window-loaded") - @restoreWindowDimensions() - @getCurrentWindow().setMinimumSize(875, 500) + window.requestAnimationFrame => + window.requestAnimationFrame => + @restoreWindowDimensions() + @getCurrentWindow().show() + ipcRenderer.send('window-command', 'window:loaded') registerCommands: -> {resourcePath} = @getLoadSettings() @@ -867,17 +865,6 @@ class NylasEnvConstructor extends Model crashRenderProcess: -> process.crash() - getUserInitScriptPath: -> - initScriptPath = fs.resolve(@getConfigDirPath(), 'init', ['js', 'coffee']) - initScriptPath ? path.join(@getConfigDirPath(), 'init.coffee') - - requireUserInitScript: -> - if userInitScriptPath = @getUserInitScriptPath() - try - require(userInitScriptPath) if fs.isFileSync(userInitScriptPath) - catch error - console.log(error) - # Require the module with the given globals. # # The globals will be set on the `window` object and removed after the diff --git a/static/index.html b/static/index.html index 6e53a881c..ba85af211 100644 --- a/static/index.html +++ b/static/index.html @@ -3,7 +3,7 @@