From 763ab20ecaf94e8e22e2b97cfa244c0b7852cf6b Mon Sep 17 00:00:00 2001 From: Maha Lakshme S Date: Wed, 6 Sep 2023 15:42:24 +0530 Subject: [PATCH] avniproject/avni-product#1374 | Corrected bundle path in sourcemap upload --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 09d551cac..f1ba5bf75 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,7 @@ ip:=$(if $(ip),$(ip),$(shell ifconfig | grep -A 2 'en0' | grep 'inet ' | tail -1 ip:=$(if $(ip),$(ip),$(shell ifconfig | grep -A 4 'en0' | grep 'inet ' | tail -1 | xargs | cut -d ' ' -f 2 | cut -d ':' -f 2)) AVNI_HOST?=$(ip) sha:=$(shell git rev-parse --short=4 HEAD) +flavor_folder_uppercase_path:=$(shell echo "$(flavor)" | awk '{print toupper(substr($$0,1,1)) tolower(substr($$0,2))}') ifndef flavor flavor:=generic @@ -87,7 +88,7 @@ define _upload_release_sourcemap cd packages/openchs-android/android/app/build/generated && npx bugsnag-sourcemaps upload \ --api-key $$$(bugsnag_env_var_name) \ --app-version $(versionName) \ - --minified-file assets/react/$(flavor)/release/index.android.bundle \ + --minified-file assets/createBundle$(flavor_folder_uppercase_path)ReleaseJsAndAssets/index.android.bundle \ --source-map sourcemaps/react/$(flavor)Release/index.android.bundle.map \ --overwrite \ --minified-url "index.android.bundle" \