Use existing EXPO_PUBLIC_BUNDLE_IDENTIFIER short commit has as Sentry dist value

This commit is contained in:
Eric Bailey
2025-07-22 18:31:03 -05:00
parent 37deba7653
commit 2f5a4e4ff3
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ index c282ade..8777755 100755
const isHermes = assets.find(asset => asset.endsWith('.hbc')); const isHermes = assets.find(asset => asset.endsWith('.hbc'));
const windowsCallback = process.platform === "win32" ? 'node ' : ''; const windowsCallback = process.platform === "win32" ? 'node ' : '';
- execSync(`${windowsCallback}${sentryCliBin} sourcemaps upload ${isHermes ? '--debug-id-reference' : ''} ${assets.join(' ')}`, { - execSync(`${windowsCallback}${sentryCliBin} sourcemaps upload ${isHermes ? '--debug-id-reference' : ''} ${assets.join(' ')}`, {
+ execSync(`${windowsCallback}${sentryCliBin} sourcemaps upload ${isHermes ? '--debug-id-reference' : ''} ${assets.join(' ')} --dist ${process.env.SENTRY_DIST}`, { + execSync(`${windowsCallback}${sentryCliBin} sourcemaps upload ${isHermes ? '--debug-id-reference' : ''} ${assets.join(' ')} --dist ${process.env.EXPO_PUBLIC_BUNDLE_IDENTIFIER}`, {
env: { env: {
...process.env, ...process.env,
[SENTRY_PROJECT]: sentryProject, [SENTRY_PROJECT]: sentryProject,
+2 -2
View File
@@ -16,9 +16,9 @@ import * as env from '#/env'
const release = pkgJson.version const release = pkgJson.version
/** /**
* The latest deployed commit hash * The latest deployed short commit hash
*/ */
const dist = env.SENTRY_DIST || 'dev' const dist = env.BUNDLE_IDENTIFIER || 'dev'
init({ init({
enabled: !env.IS_DEV && !!env.SENTRY_DSN, enabled: !env.IS_DEV && !!env.SENTRY_DSN,
+1 -1
View File
@@ -55,7 +55,7 @@ module.exports = async function (env, argv) {
release: { release: {
// env is undefined for Render.com builds, fall back // env is undefined for Render.com builds, fall back
name: version, name: version,
dist: process.env.SENTRY_DIST || 'dev', dist: process.env.EXPO_PUBLIC_BUNDLE_IDENTIFIER || 'dev',
}, },
}), }),
) )