fix build script
This commit is contained in:
8
filcnaplo/build.sh
Normal file → Executable file
8
filcnaplo/build.sh
Normal file → Executable file
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
# With build number
|
# With build number
|
||||||
function get_version_bn
|
function get_version_bn
|
||||||
@@ -9,11 +9,9 @@ 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
|
||||||
|
|
||||||
if test -e /mnt/enc/keys/filc3.properties
|
if test -e ~/keys/filc3.properties
|
||||||
set -x ANDROID_SIGNING /mnt/enc/keys/filc3.properties
|
set -x ANDROID_SIGNING ~/keys/filc3.properties
|
||||||
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
|
||||||
cp -v "build/app/outputs/flutter-apk/app-release.apk" ~/"Desktop/hu.filc.naplo_"(get_version_bn).apk
|
cp -v "build/app/outputs/flutter-apk/app-release.apk" ~/"Desktop/hu.filc.naplo_"(get_version_bn).apk
|
||||||
|
|
||||||
notify-send "Flutter" "Apk build done."
|
|
||||||
|
|||||||
Submodule filcnaplo_mobile_ui updated: 315b8d864c...2b4ed2a4d1
Submodule filcnaplo_premium updated: 3bcb4c4b27...40999bf998
Reference in New Issue
Block a user