fix build script

This commit is contained in:
55nknown 2022-11-20 22:03:46 +01:00
parent 556ba9d289
commit 97b01e9f14
3 changed files with 5 additions and 7 deletions

8
filcnaplo/build.sh Normal file → Executable file
View 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."

@ -1 +1 @@
Subproject commit 315b8d864c4613e71b34ee1861cc15c6b4440ae3 Subproject commit 2b4ed2a4d1074ce99b1380b7fd456547265f413d

@ -1 +1 @@
Subproject commit 3bcb4c4b27a502344739f1fe2c6929c8722b619d Subproject commit 40999bf9987bb42b998ca5c96f02bc7f8ba6239f