From 5d8415792c78622be8e69c1db3a0364cc60bb923 Mon Sep 17 00:00:00 2001 From: RLittlesII Date: Tue, 13 Nov 2018 19:45:08 -0600 Subject: [PATCH] (GH-24) Fixed Copy Apk Task to only copy signed packages. --- Xamarin.Recipe/Content/android.cake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Xamarin.Recipe/Content/android.cake b/Xamarin.Recipe/Content/android.cake index f5363be..175bb46 100644 --- a/Xamarin.Recipe/Content/android.cake +++ b/Xamarin.Recipe/Content/android.cake @@ -111,7 +111,8 @@ Task("Copy-Apk") Verbose("Apk Path: {0}", buildOutputDirectory + "/*.apk"); - var files = GetFiles(buildOutputDirectory + "/*.apk"); + var files = GetFiles(buildOutputDirectory + "/*.apk") + .FirstOrDefault(x => x.GetFilename().ToString().ToLower().Contains("signed")); CopyFiles(files, MakeAbsolute(BuildParameters.Paths.Directories.DroidArtifactDirectoryPath)); }); \ No newline at end of file