diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-01-03 04:46:29 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-01-03 04:46:29 +0530 |
commit | 5fa0a513a7118d8f6fa7efba7c2f8e01891b9cd1 (patch) | |
tree | 72283cfac0c7420f26147ec842456b210766536b /packages/main/esbuild.config.js | |
parent | Turn off 'FuseV1Options.EnableEmbeddedAsarIntegrityValidation' since the pack... (diff) | |
download | sophie-5fa0a513a7118d8f6fa7efba7c2f8e01891b9cd1.tar.gz sophie-5fa0a513a7118d8f6fa7efba7c2f8e01891b9cd1.tar.zst sophie-5fa0a513a7118d8f6fa7efba7c2f8e01891b9cd1.zip |
Enhance 'About' dialog with more info
Signed-off-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'packages/main/esbuild.config.js')
-rw-r--r-- | packages/main/esbuild.config.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/main/esbuild.config.js b/packages/main/esbuild.config.js index af52f27..500590f 100644 --- a/packages/main/esbuild.config.js +++ b/packages/main/esbuild.config.js | |||
@@ -1,3 +1,4 @@ | |||
1 | import getRepoInfo from 'git-repo-info'; | ||
1 | import { node } from '../../config/buildConstants.js'; | 2 | import { node } from '../../config/buildConstants.js'; |
2 | import { getConfig } from '../../config/esbuildConfig.js'; | 3 | import { getConfig } from '../../config/esbuildConfig.js'; |
3 | import { fileURLToDirname } from '../../config/utils.js'; | 4 | import { fileURLToDirname } from '../../config/utils.js'; |
@@ -8,6 +9,8 @@ if (process.env.MODE !== 'development') { | |||
8 | externalPackages.push('electron-devtools-installer'); | 9 | externalPackages.push('electron-devtools-installer'); |
9 | } | 10 | } |
10 | 11 | ||
12 | const gitInfo = getRepoInfo(); | ||
13 | |||
11 | export default getConfig({ | 14 | export default getConfig({ |
12 | absWorkingDir: fileURLToDirname(import.meta.url), | 15 | absWorkingDir: fileURLToDirname(import.meta.url), |
13 | entryPoints: [ | 16 | entryPoints: [ |
@@ -20,4 +23,7 @@ export default getConfig({ | |||
20 | external: externalPackages, | 23 | external: externalPackages, |
21 | }, { | 24 | }, { |
22 | VITE_DEV_SERVER_URL: process.env.VITE_DEV_SERVER_URL || null, | 25 | VITE_DEV_SERVER_URL: process.env.VITE_DEV_SERVER_URL || null, |
26 | GIT_SHA: gitInfo.abbreviatedSha, | ||
27 | GIT_BRANCH: gitInfo.branch, | ||
28 | BUILD_DATE: new Date().getTime(), | ||
23 | }); | 29 | }); |