forked from firka/student-legacy
fix fucky end of line sequence on build script
This commit is contained in:
parent
35524589e4
commit
de079bd6ee
@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env fish
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# With build number
|
# With build number
|
||||||
function get_version_bn
|
function get_version_bn
|
||||||
cat pubspec.yaml | grep version: | cut -d' ' -f2
|
cat pubspec.yaml | grep version: | cut -d' ' -f2
|
||||||
end
|
end
|
||||||
|
|
||||||
function get_version
|
function get_version
|
||||||
cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1
|
cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1
|
||||||
end
|
end
|
||||||
|
|
||||||
flutter build apk --release --dart-define=APPVER=(get_version) --no-tree-shake-icons
|
flutter build apk --release --dart-define=APPVER=(get_version) --no-tree-shake-icons
|
||||||
|
Loading…
x
Reference in New Issue
Block a user