From de079bd6ee4489d03fbe374187ffb985986138d7 Mon Sep 17 00:00:00 2001
From: chromium <chromium@airmail.cc>
Date: Sat, 27 May 2023 15:39:37 +0200
Subject: [PATCH 1/2] fix fucky end of line sequence on build script

---
 filcnaplo/build.sh | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/filcnaplo/build.sh b/filcnaplo/build.sh
index da741c2..29f768b 100755
--- a/filcnaplo/build.sh
+++ b/filcnaplo/build.sh
@@ -1,12 +1,12 @@
-#!/usr/bin/env fish
-
-# With build number
-function get_version_bn
-  cat pubspec.yaml | grep version: | cut -d' ' -f2
-end
-
-function get_version
-  cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1
-end
-
-flutter build apk --release --dart-define=APPVER=(get_version) --no-tree-shake-icons
+#!/usr/bin/env sh
+
+# With build number
+function get_version_bn
+  cat pubspec.yaml | grep version: | cut -d' ' -f2
+end
+
+function get_version
+  cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1
+end
+
+flutter build apk --release --dart-define=APPVER=(get_version) --no-tree-shake-icons

From 364f41e3c47e4c56783195c47c77b4b8d0a65e2d Mon Sep 17 00:00:00 2001
From: chromium <chromium@airmail.cc>
Date: Sat, 27 May 2023 15:43:47 +0200
Subject: [PATCH 2/2] fix build script

---
 filcnaplo/build.sh | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/filcnaplo/build.sh b/filcnaplo/build.sh
index 29f768b..a38f5ed 100755
--- a/filcnaplo/build.sh
+++ b/filcnaplo/build.sh
@@ -1,12 +1,3 @@
 #!/usr/bin/env sh
 
-# With build number
-function get_version_bn
-  cat pubspec.yaml | grep version: | cut -d' ' -f2
-end
-
-function get_version
-  cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1
-end
-
-flutter build apk --release --dart-define=APPVER=(get_version) --no-tree-shake-icons
+flutter build apk --release --dart-define=APPVER=$(cat pubspec.yaml | grep version: | cut -d' ' -f2 | cut -d+ -f1) --no-tree-shake-icons