fix build script

This commit is contained in:
chromium 2023-05-27 15:43:47 +02:00
parent de079bd6ee
commit 364f41e3c4

View File

@ -1,12 +1,3 @@
#!/usr/bin/env sh #!/usr/bin/env sh
# With build number flutter build apk --release --dart-define=APPVER=$(cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1) --no-tree-shake-icons
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