From d2cd824f6f41b4aceff0da92396bd6458e5c3ce3 Mon Sep 17 00:00:00 2001 From: linsui <2873532-linsui@users.noreply.gitlab.com> Date: Thu, 31 Oct 2024 01:33:29 +0800 Subject: [PATCH] CI: fix binary scanner when there is no upstream binary --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index af30c6680e..84d8afa693 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -381,9 +381,8 @@ fdroid build: rm $home_vagrant/fdroiddata $home_vagrant/.gitconfig; $fdroid build --verbose --test --refresh-scanner --scan-binary --on-server --no-tarball $build; apt-get install sudo; - for apk in tmp/binaries/$appid_*.apk; do - $fdroid scanner --verbose --exit-code $apk; - done; + apk="tmp/binaries/${build/:/_}.binary.apk"; + [[ -e $apk ]] && $fdroid scanner --verbose --exit-code $apk; popd; rm -rf $home_vagrant/build || true; rm -rf $ANDROID_HOME/ndk || true;