Skip to content

Commit

Permalink
Update Create-DraftRelease.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Mar 9, 2024
1 parent 4d420f1 commit 3764d1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/Create-DraftRelease.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,10 @@ if ($dryrun -or $buildonly -or $release.assets_url -imatch '^https:') {
"To create a valid appxupload, please associate the app with the Store in Visual Studio.`n"
}
# Let's check if we have the assets
$ReleaseBundle = dir "$PSScriptRoot/../dist/AppPackages/*_$base_tag*_Test/*_$base_tag*.appx*"
$directoryPath = "$PSScriptRoot/../dist/AppPackages/*_$base_tag*_Test"
if (Test-Path $directoryPath) {
$ReleaseBundle = dir "$directoryPath/*_$base_tag*.appx*"
}
# Check the file exists and it's of the right type
if ($ReleaseBundle -and ($ReleaseBundle.count -eq 1) -and (Test-Path $ReleaseBundle -PathType leaf) -and
($ReleaseBundle -imatch '\.(?:appx|appxbundle|appxupload)$')) {
Expand Down

0 comments on commit 3764d1c

Please sign in to comment.