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."

Submodule filcnaplo_premium updated: 3bcb4c4b27...40999bf998