fix build script
This commit is contained in:
parent
556ba9d289
commit
97b01e9f14
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
|
||||
function get_version_bn
|
||||
@ -9,11 +9,9 @@ function get_version
|
||||
cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1
|
||||
end
|
||||
|
||||
if test -e /mnt/enc/keys/filc3.properties
|
||||
set -x ANDROID_SIGNING /mnt/enc/keys/filc3.properties
|
||||
if test -e ~/keys/filc3.properties
|
||||
set -x ANDROID_SIGNING ~/keys/filc3.properties
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
notify-send "Flutter" "Apk build done."
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 315b8d864c4613e71b34ee1861cc15c6b4440ae3
|
||||
Subproject commit 2b4ed2a4d1074ce99b1380b7fd456547265f413d
|
@ -1 +1 @@
|
||||
Subproject commit 3bcb4c4b27a502344739f1fe2c6929c8722b619d
|
||||
Subproject commit 40999bf9987bb42b998ca5c96f02bc7f8ba6239f
|
Loading…
x
Reference in New Issue
Block a user