File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ set -euo pipefail
6
6
# Or try out the Alpha version of the Sentry Dart Plugin that does it automatically for you, feedback is welcomed.
7
7
# https://github.com/getsentry/sentry-dart-plugin
8
8
9
- export SENTRY_RELEASE=$( date +%Y-%m-%d_%H-%M-%S)
9
+ VERSION=$( grep ' ^version:' pubspec.yaml | awk ' {print $2}' )
10
+ CURRENT_DATE=$( date +%Y-%m-%d_%H-%M-%S)
11
+
12
+ export SENTRY_RELEASE=" $CURRENT_DATE " @" $VERSION "
10
13
11
14
echo -e " [\033[92mrun\033[0m] $1 "
12
15
@@ -23,7 +26,7 @@ elif [ "$1" == "android" ]; then
23
26
launchCmd=' adb shell am start -n io.sentry.samples.flutter/io.sentry.samples.flutter.MainActivity'
24
27
echo -e " [\033[92mrun\033[0m] Android app installed"
25
28
elif [ " $1 " == " web" ]; then
26
- flutter build web --dart-define=SENTRY_RELEASE=$SENTRY_RELEASE --source-maps
29
+ flutter build web --dart-define=SENTRY_RELEASE=" $SENTRY_RELEASE " --source-maps
27
30
buildDir=' ./build/web/'
28
31
port=' 8132'
29
32
ls -lah $buildDir
You can’t perform that action at this time.
0 commit comments