Skip to content

Commit

Permalink
Add About Window, improved some text, added bug link (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-alarcon authored Dec 13, 2021
1 parent 2928fbe commit 9543424
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"productName": "Prospect Mail",
"version": "0.4.0-beta",
"main": "src/main.js",
"description": "Prospect Mail is an Outlook Electron desktop application for the new design",
"description": "Unofficial desktop client for Microsoft Outlook",
"homepage": "https://github.com/julian-alarcon/prospect-mail",
"keywords": [
"Electron",
Expand All @@ -16,6 +16,9 @@
"type": "git",
"url": "git+ssh://github.com/julian-alarcon/prospect-mail"
},
"bugs": {
"url": "https://github.com/julian-alarcon/prospect-mail/issues"
},
"author": {
"name": "Julian Alarcon",
"email": "[email protected]",
Expand All @@ -27,7 +30,7 @@
"yarn": "^1.22.15"
},
"scripts": {
"start": "electron src/main.js",
"start": "electron .",
"pack": "electron-builder --dir",
"dist:linux": "electron-builder --linux",
"dist:linux:appimage": "electron-builder --linux AppImage",
Expand All @@ -41,7 +44,8 @@
},
"dependencies": {
"electron-debug": "^3.2.0",
"electron-settings": "^4.0.2"
"electron-settings": "^4.0.2",
"about-window": "^1.15.2"
},
"devDependencies": {
"electron": "^16.0.2",
Expand All @@ -57,7 +61,7 @@
"icon": "build/icons/512x512.png",
"desktop": {
"Name": "Prospect Mail",
"Comment": "Unofficial client for Microsoft Outlook",
"Comment": "Unofficial desktop client for Microsoft Outlook",
"StartupWMClass": "prospect-mail"
},
"target": [
Expand Down
18 changes: 18 additions & 0 deletions src/controller/tray-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ const settings = require('electron-settings')
const path = require('path')
const fs = require('fs')
const crypto = require('crypto')
const { default: openAboutWindow } = require("about-window");
const about_iconPath = path.join(__dirname, '../../misc/prospect-logo.svg');
const packageJson = require("../../package.json");

const macOS = process.platform === 'darwin' ? true : false

Expand All @@ -30,6 +33,21 @@ class TrayController {
}
]
},
{ label: 'About this App', click: () =>
openAboutWindow({
icon_path: about_iconPath,
product_name: "Prospect Mail",
copyright: [
`<p style="text-align: center">Distributed under ${packageJson.license} license</p>
<p style="text-align: center"><b>If this App has been useful for you,
</p><p style="text-align: center">consider buying me a coffee ☕!</p>
<p style="text-align: center"><a href="https://ko-fi.com/alarconj" title="Ko-Fe">Donate</a></p>`
],
use_version_info: false,
use_inner_html: true,
adjust_window_size: true
}),
},
{ label: 'Quit', click: () => this.cleanupAndQuit() }
])

Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@
dependencies:
"@types/yargs-parser" "*"

about-window@^1.15.2:
version "1.15.2"
resolved "https://registry.yarnpkg.com/about-window/-/about-window-1.15.2.tgz#0397216ce0cb6e8a4fa9ba12941e56d481d712b5"
integrity sha512-31mDAnLUfKm4uShfMzeEoS6a3nEto2tUt4zZn7qyAKedaTV4p0dGiW1n+YG8vtRh78mZiewghWJmoxDY+lHyYg==

ajv-keywords@^3.4.1:
version "3.5.2"
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d"
Expand Down

0 comments on commit 9543424

Please sign in to comment.