From dd8604e71c8f0494051813fe87312d976cc60aec Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Mon, 25 Jun 2018 18:47:33 +0200 Subject: [PATCH 1/3] Open window on start --- packages/fether-electron/src/main/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/fether-electron/src/main/index.js b/packages/fether-electron/src/main/index.js index 76bf3d8e..267f9b5d 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' }, -- GitLab From 2a65a9637700161f5ef6d71f91196d651ba63bee Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Tue, 26 Jun 2018 09:01:49 +0200 Subject: [PATCH 2/3] Fix static path --- packages/fether-electron/src/main/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/fether-electron/src/main/index.js b/packages/fether-electron/src/main/index.js index 267f9b5d..8ce64e1c 100644 --- a/packages/fether-electron/src/main/index.js +++ b/packages/fether-electron/src/main/index.js @@ -3,8 +3,6 @@ // // SPDX-License-Identifier: BSD-3-Clause -/* global __static */ - import electron from 'electron'; import path from 'path'; import url from 'url'; @@ -17,6 +15,7 @@ import messages from './messages'; import { productName } from '../../electron-builder.json'; import Pino from './utils/pino'; import { runParity, killParity } from './operations/runParity'; +import staticPath from './utils/staticPath'; const { ipcMain, Menu, session } = electron; const pino = Pino(); @@ -28,7 +27,7 @@ const menubar = Mb({ // passed to ELECTRON_START_URL process.env.ELECTRON_START_URL || url.format({ - pathname: path.join(__static, 'build', 'index.html'), + pathname: path.join(staticPath, 'build', 'index.html'), protocol: 'file:', slashes: true }), -- GitLab From c38c5ea9952370b8cd7653c3f42af76ea2226ae1 Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Tue, 26 Jun 2018 09:01:57 +0200 Subject: [PATCH 3/3] Rename fether wallet to fether --- README.md | 2 +- packages/fether-electron/electron-builder.json | 2 +- packages/fether-react/public/index.html | 2 +- packages/fether-ui/README.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 689333bf..e71e4b4f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Fether Wallet +# Fether ## Get the latest binary diff --git a/packages/fether-electron/electron-builder.json b/packages/fether-electron/electron-builder.json index 63245c19..7fda0869 100644 --- a/packages/fether-electron/electron-builder.json +++ b/packages/fether-electron/electron-builder.json @@ -14,7 +14,7 @@ "oneClick": true, "perMachine": true }, - "productName": "Fether Wallet", + "productName": "Fether", "publish": "github", "win": { "icon": "./assets/icon/small-white-512x512.png", diff --git a/packages/fether-react/public/index.html b/packages/fether-react/public/index.html index 43917cd7..27ac9c71 100644 --- a/packages/fether-react/public/index.html +++ b/packages/fether-react/public/index.html @@ -21,7 +21,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - Fether Wallet + Fether diff --git a/packages/fether-ui/README.md b/packages/fether-ui/README.md index cb7f5cbc..8080a9cc 100644 --- a/packages/fether-ui/README.md +++ b/packages/fether-ui/README.md @@ -1,3 +1,3 @@ # fether-ui -UI components used in the Fether Wallet. +UI components used in Fether. -- GitLab