tried to add signing + list all the files

This commit is contained in:
carzh 2025-01-22 15:56:56 -08:00
parent 4638045a6c
commit 38ee230e17

View file

@ -58,7 +58,7 @@ stages:
targetType: 'inline'
script: |
dotnet nuget add source $(Build.SourcesDirectory)\nuget-artifact --name local-nuget
dotnet publish -c Release --property:UsePrebuiltNativePackage=true --property:CurrentOnnxRuntimeVersion=$(NuGetPackageVersionNumber) -f net8.0-android
dotnet publish -c Release --property:UsePrebuiltNativePackage=true --property:CurrentOnnxRuntimeVersion=$(NuGetPackageVersionNumber) -f net8.0-android -p:AndroidKeyStore true -p:AndroidSigningKeyAlias androiddebugkey -p:AndroidSigningKeyPass android -p:AndroidSigningKeyStore debug.keystore -p:AndroidSigningStorePass android
workingDirectory: '$(Build.SourcesDirectory)\csharp\test\Microsoft.ML.OnnxRuntime.Tests.MAUI'
- task: PowerShell@2
@ -93,6 +93,21 @@ stages:
}
displayName: 'Search for AAB files recursively'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
$folderPath = "$(Build.SourcesDirectory)\csharp\test\Microsoft.ML.OnnxRuntime.Tests.MAUI\bin\Release\net8.0-android\publish"
Write-Host "Listing all files in $folderPath"
$files = Get-ChildItem -Path $folderPath -Recurse | Where-Object { -not $_.PSIsContainer }
if ($files) {
Write-Host "Found files:"
$files | ForEach-Object { Write-Host $_.FullName }
} else {
Write-Host "No files found."
}
displayName: 'List all files in directory'
- task: CopyFiles@2
displayName: 'Copy apk to staging directory'
inputs: