Skip to content

Commit

Permalink
Merge pull request #8892 from Azure/compress-only-files
Browse files Browse the repository at this point in the history
Compress only files instead of complete folder in package
  • Loading branch information
v-amolpatil authored Aug 29, 2023
2 parents 09349e8 + 8a218b5 commit 15f30a2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2788,7 +2788,12 @@ function PrepareSolutionMetadata($solutionMetadataRawContent, $contentResourceDe
else {
$zipPackageName = "$calculatedBuildPipelinePackageVersion" + ".zip"
}
Compress-Archive -Path "$solutionFolder/*" -DestinationPath "$solutionFolder/$zipPackageName" -Force

$compress = @{
Path = "$solutionFolder/createUiDefinition.json", "$solutionFolder/mainTemplate.json"
DestinationPath = "$solutionFolder/$zipPackageName"
}
Compress-Archive @compress -Force
}

function global:GetContentTemplateDefaultValues()
Expand Down

0 comments on commit 15f30a2

Please sign in to comment.