From b03a6eecc4368413ef95cc2a8e5fbf67ed88d105 Mon Sep 17 00:00:00 2001 From: ange Date: Thu, 20 Feb 2025 14:07:51 +0000 Subject: [PATCH 1/4] feat: build-stealth --- .gitea/workflows/apk.yaml | 17 +++++++++++++++++ dialer/stealth_local_run.sh | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/apk.yaml b/.gitea/workflows/apk.yaml index db63776..90e3e10 100644 --- a/.gitea/workflows/apk.yaml +++ b/.gitea/workflows/apk.yaml @@ -15,3 +15,20 @@ jobs: 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: 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/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 -- 2.45.2 From 314e3be36a3f2eed8d813d8a99e62e9297dfa213 Mon Sep 17 00:00:00 2001 From: ange Date: Thu, 20 Feb 2025 14:14:44 +0000 Subject: [PATCH 2/4] fix(cicd): args as string --- .gitea/workflows/apk.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitea/workflows/apk.yaml b/.gitea/workflows/apk.yaml index 90e3e10..e9b6d65 100644 --- a/.gitea/workflows/apk.yaml +++ b/.gitea/workflows/apk.yaml @@ -24,10 +24,7 @@ jobs: subpath: dialer/ - uses: icing/flutter@main with: - args: - - build - - apk - - --dart-define=STEALTH=true + args: "build apk --dart-define=STEALTH=true" - uses: actions/upload-artifact@v1 with: name: icing-dialer-stealth-${{ gitea.ref_name }}-${{ gitea.run_id }}.apk -- 2.45.2 From ab45bf89fba34341969a016b0e6eef8d77c18db2 Mon Sep 17 00:00:00 2001 From: ange Date: Thu, 20 Feb 2025 14:16:58 +0000 Subject: [PATCH 3/4] feat: -s stealth mode build flag --- dialer/build.sh | 7 ++++++- dialer/run.sh | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dialer/build.sh b/dialer/build.sh index 6416762..994a92e 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..aa71e83 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[@]}" -- 2.45.2 From 1aeb9e4b35d587b055a9b3f2753f4dd1565cfad7 Mon Sep 17 00:00:00 2001 From: ange Date: Thu, 20 Feb 2025 14:24:00 +0000 Subject: [PATCH 4/4] fix(cicd): wrong docker image URL --- .gitea/workflows/apk.yaml | 4 ++-- dialer/build.sh | 2 +- dialer/run.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/apk.yaml b/.gitea/workflows/apk.yaml index e9b6d65..5ddefac 100644 --- a/.gitea/workflows/apk.yaml +++ b/.gitea/workflows/apk.yaml @@ -10,7 +10,7 @@ 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 @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v1 with: subpath: dialer/ - - uses: icing/flutter@main + - uses: docker://git.gmoker.com/icing/flutter:main with: args: "build apk --dart-define=STEALTH=true" - uses: actions/upload-artifact@v1 diff --git a/dialer/build.sh b/dialer/build.sh index 994a92e..c8f5e05 100755 --- a/dialer/build.sh +++ b/dialer/build.sh @@ -2,7 +2,7 @@ IMG=git.gmoker.com/icing/flutter:main -if [ "$1" == -s ]; then +if [ "$1" == '-s' ]; then OPT+=(--dart-define=STEALTH=true) fi diff --git a/dialer/run.sh b/dialer/run.sh index aa71e83..2aa3244 100755 --- a/dialer/run.sh +++ b/dialer/run.sh @@ -2,7 +2,7 @@ IMG=git.gmoker.com/icing/flutter:main -if [ "$1" == -s ]; then +if [ "$1" == '-s' ]; then OPT+=(--dart-define=STEALTH=true) fi -- 2.45.2