diff --git a/.gitea/workflows/apk.yaml b/.gitea/workflows/apk.yaml index db63776..5ddefac 100644 --- a/.gitea/workflows/apk.yaml +++ b/.gitea/workflows/apk.yaml @@ -10,8 +10,22 @@ jobs: - uses: actions/checkout@v1 with: subpath: dialer/ - - uses: icing/flutter@main + - uses: docker://git.gmoker.com/icing/flutter:main - uses: actions/upload-artifact@v1 with: name: icing-dialer-${{ gitea.ref_name }}-${{ gitea.run_id }}.apk path: build/app/outputs/flutter-apk/app-release.apk + + build-stealth: + runs-on: debian + steps: + - uses: actions/checkout@v1 + with: + subpath: dialer/ + - uses: docker://git.gmoker.com/icing/flutter:main + with: + args: "build apk --dart-define=STEALTH=true" + - uses: actions/upload-artifact@v1 + with: + name: icing-dialer-stealth-${{ gitea.ref_name }}-${{ gitea.run_id }}.apk + path: build/app/outputs/flutter-apk/app-release.apk diff --git a/dialer/build.sh b/dialer/build.sh index 6416762..c8f5e05 100755 --- a/dialer/build.sh +++ b/dialer/build.sh @@ -2,4 +2,9 @@ IMG=git.gmoker.com/icing/flutter:main -docker run --rm -v "$PWD:/app/" "$IMG" build apk +if [ "$1" == '-s' ]; then + OPT+=(--dart-define=STEALTH=true) +fi + +set -x +docker run --rm -v "$PWD:/app/" "$IMG" build apk "${OPT[@]}" diff --git a/dialer/run.sh b/dialer/run.sh index 3a8ccb7..2aa3244 100755 --- a/dialer/run.sh +++ b/dialer/run.sh @@ -2,4 +2,9 @@ IMG=git.gmoker.com/icing/flutter:main -docker run --rm -p 5037:5037 -v "$PWD:/app/" "$IMG" run +if [ "$1" == '-s' ]; then + OPT+=(--dart-define=STEALTH=true) +fi + +set -x +docker run --rm -p 5037:5037 -v "$PWD:/app/" "$IMG" run "${OPTS[@]}" diff --git a/dialer/stealth_local_run.sh b/dialer/stealth_local_run.sh index 95cc270..ae202a9 100755 --- a/dialer/stealth_local_run.sh +++ b/dialer/stealth_local_run.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash + echo "Running Icing Dialer in STEALTH mode..." -flutter run --dart-define=STEALTH=true \ No newline at end of file +flutter run --dart-define=STEALTH=true