diff options
author | 2021-09-14 05:57:08 +0530 | |
---|---|---|
committer | 2021-09-14 05:57:08 +0530 | |
commit | 1612c2abc4a9c1423388510b7cffb256ce811493 (patch) | |
tree | 3b16d2e690fbac66d5bd9b355f20258afed17112 /src/environment.js | |
parent | Update submodules, browserslist data updates and linter fixes [skip ci] (diff) | |
download | ferdium-app-1612c2abc4a9c1423388510b7cffb256ce811493.tar.gz ferdium-app-1612c2abc4a9c1423388510b7cffb256ce811493.tar.zst ferdium-app-1612c2abc4a9c1423388510b7cffb256ce811493.zip |
Revert "refactor: reuse method from the core electron framework for the 'About' dialog."
Diffstat (limited to 'src/environment.js')
-rw-r--r-- | src/environment.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/environment.js b/src/environment.js index 9d7ffaf78..b30e3778d 100644 --- a/src/environment.js +++ b/src/environment.js | |||
@@ -5,6 +5,7 @@ import { is, api as electronApi } from 'electron-util'; | |||
5 | 5 | ||
6 | import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme'; | 6 | import { DEFAULT_ACCENT_COLOR } from '@meetfranz/theme'; |
7 | 7 | ||
8 | import osName from 'os-name'; | ||
8 | import { | 9 | import { |
9 | LIVE_FERDI_API, | 10 | LIVE_FERDI_API, |
10 | DEV_FRANZ_API, | 11 | DEV_FRANZ_API, |
@@ -23,6 +24,7 @@ import { | |||
23 | } from './config'; | 24 | } from './config'; |
24 | 25 | ||
25 | import { asarPath } from './helpers/asar-helpers'; | 26 | import { asarPath } from './helpers/asar-helpers'; |
27 | import * as buildInfo from './buildInfo.json'; // eslint-disable-line import/no-unresolved | ||
26 | 28 | ||
27 | export const { app } = electronApi; | 29 | export const { app } = electronApi; |
28 | export const ferdiVersion = app.getVersion(); | 30 | export const ferdiVersion = app.getVersion(); |
@@ -171,3 +173,17 @@ export const DEFAULT_APP_SETTINGS = { | |||
171 | alwaysShowWorkspaces: false, | 173 | alwaysShowWorkspaces: false, |
172 | liftSingleInstanceLock: false, | 174 | liftSingleInstanceLock: false, |
173 | }; | 175 | }; |
176 | |||
177 | export function aboutAppDetails() { | ||
178 | return [ | ||
179 | `Version: ${ferdiVersion}`, | ||
180 | `Electron: ${electronVersion}`, | ||
181 | `Chrome: ${chromeVersion}`, | ||
182 | `Node.js: ${nodeVersion}`, | ||
183 | `Platform: ${osName()}`, | ||
184 | `Arch: ${process.arch}`, | ||
185 | `Build date: ${new Date(Number(buildInfo.timestamp))}`, | ||
186 | `Git SHA: ${buildInfo.gitHashShort}`, | ||
187 | `Git branch: ${buildInfo.gitBranch}`, | ||
188 | ].join('\n'); | ||
189 | } | ||