Update helper shell scripts

This commit is contained in:
Armand 2025-05-12 11:48:25 +02:00
parent 92b3a47fdc
commit 0a7fae9ed5
Signed by: 4831c0
GPG Key ID: 3F97EDDF98E45AA4
3 changed files with 8 additions and 27 deletions

8
tools/linux/build_apk.sh Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
cd firka
flutter gen-l10n --template-arb-file app_hu.arb
git branch | grep '*' | grep dev >/dev/null \
&& flutter build apk --debug --target-platform android-arm,android-arm64,android-x64 \
|| flutter build apk --release --tree-shake-icons --split-per-abi --target-platform android-arm,android-arm64

View File

@ -1,11 +0,0 @@
#!/bin/bash
# move out from tools dir
cd ../../firka || exit
# refresh packages
flutter clean
flutter pub get
# build apk
flutter build apk --release --tree-shake-icons --split-per-abi --target-platform android-arm,android-arm64

View File

@ -1,16 +0,0 @@
#!/bin/bash
# move out from tools dir
cd ../../firka || exit
# refresh packages
flutter clean
flutter pub get
# check if system is macos
if [[ "$OSTYPE" == "darwin"* ]]; then
# build ipa
flutter build ipa --release --tree-shake-icons --no-codesign
else
echo "Használj macos-t az ipa építéshez."
fi