diff --git a/filcnaplo/build.sh b/filcnaplo/build.sh index da741c2..a38f5ed 100755 --- a/filcnaplo/build.sh +++ b/filcnaplo/build.sh @@ -1,12 +1,3 @@ -#!/usr/bin/env fish - -# With build number -function get_version_bn - cat pubspec.yaml | grep version: | cut -d' ' -f2 -end - -function get_version - cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1 -end - -flutter build apk --release --dart-define=APPVER=(get_version) --no-tree-shake-icons +#!/usr/bin/env sh + +flutter build apk --release --dart-define=APPVER=$(cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1) --no-tree-shake-icons