diff --git a/.travis.yml b/.travis.yml index 6202fd0656da036f4d449b2334ec21473075c984..2da78dd10882fb0462a4a0fc3bbfec4c77436478 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,11 @@ cache: yarn: true directories: - node_modules +sudo: required before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash # Travis's default version is 1.3.2, we need 1.4.2 for nohoist - export PATH=$HOME/.yarn/bin:$PATH + - scripts/installWine.sh install: - yarn install language: node_js diff --git a/packages/fether-electron/src/main/index.js b/packages/fether-electron/src/main/index.js index 76bf3d8e8a34c86419d73efc87144d9d3813848f..267f9b5d3319796c27d65ef08ad4508e10938d56 100644 --- a/packages/fether-electron/src/main/index.js +++ b/packages/fether-electron/src/main/index.js @@ -44,6 +44,9 @@ const menubar = Mb({ function createWindow () { pino.info(`Starting ${productName}...`); + // Show window on start + menubar.showWindow(); + doesParityExist() .catch(() => fetchParity(menubar.window)) // Install parity if not present .then(() => runParity(menubar.window)) @@ -77,7 +80,8 @@ function createWindow () { } // Right click menu for Tray -menubar.on('after-create-window', () => { +menubar.on('after-create-window', function () { + // Add right-click menu const contextMenu = Menu.buildFromTemplate([ { role: 'about' }, { type: 'separator' }, diff --git a/scripts/installWine.sh b/scripts/installWine.sh new file mode 100755 index 0000000000000000000000000000000000000000..b1c592331101d75f0d5da9e9f9041408ab2684ec --- /dev/null +++ b/scripts/installWine.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Install wine on Linux to build Windows binaries +if [ "$TRAVIS_OS_NAME" = "linux" ]; then + sudo apt-get update + sudo apt-get install -y wine-stable +fi