-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrelease.android.sh
More file actions
40 lines (35 loc) · 1.14 KB
/
release.android.sh
File metadata and controls
40 lines (35 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
VERSION=2.3.0
echo "version $VERSION"
# rm ICBSorocaba.apk
# (cd android && ./gradlew assembleRelease)
# mv android/app/build/outputs/apk/app-release.apk ICBSorocaba.apk
echo "Bundle source map ANDROID"
npm run react-native bundle -- \
--platform android \
--dev false \
--entry-file index.js \
--bundle-output /tmp/fitfood.android.bundle \
--sourcemap-output /tmp/fitfood.android.sourcemap
npm run bugsnag-sourcemaps upload -- \
--api-key xxxx \
--app-version $VERSION \
--minified-file /tmp/fitfood.android.bundle \
--source-map /tmp/fitfood.android.sourcemap \
--minified-url index.android.bundle \
--upload-sources \
--overwrite
echo "Bundle source map IOS"
npm run react-native bundle -- \
--platform ios \
--dev false \
--entry-file index.ios.js \
--bundle-output /tmp/fitfood.ios.bundle \
--sourcemap-output /tmp/fitfood.ios.sourcemap
npm run bugsnag-sourcemaps upload -- \
--api-key xxxx \
--app-version $VERSION \
--minified-file /tmp/fitfood.ios.bundle \
--source-map /tmp/fitfood.ios.sourcemap \
--minified-url index.ios.bundle \
--upload-sources \
--overwrite