fix(build): scripts shouldn't need fish

This commit is contained in:
Móricz Gergő 2023-05-27 15:45:55 +02:00
parent be269a4a34
commit 03a779ea9c
2 changed files with 3 additions and 12 deletions

View File

@ -1,12 +1,3 @@
#!/usr/bin/env fish #!/bin/sh
# With build number flutter build ipa --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 ipa --release --dart-define=APPVER=(get_version) --no-tree-shake-icons

View File

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