| ... | ... | @@ -115,8 +115,19 @@ function resolveAboutCommitHash(): string | null { |
| 115 | 115 | return aboutCommitHashCache; |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | | aboutCommitHashCache = |
| 119 | | normalizeCommitHash(process.env.T3CODE_COMMIT_HASH) ?? resolveEmbeddedCommitHash(); |
| 118 | const envCommitHash = normalizeCommitHash(process.env.T3CODE_COMMIT_HASH); |
| 119 | if (envCommitHash) { |
| 120 | aboutCommitHashCache = envCommitHash; |
| 121 | return aboutCommitHashCache; |
| 122 | } |
| 123 | |
| 124 | // Only packaged builds are required to expose commit metadata. |
| 125 | if (!app.isPackaged) { |
| 126 | aboutCommitHashCache = null; |
| 127 | return aboutCommitHashCache; |
| 128 | } |
| 129 | |
| 130 | aboutCommitHashCache = resolveEmbeddedCommitHash(); |
| 120 | 131 | |
| 121 | 132 | return aboutCommitHashCache; |
| 122 | 133 | } |