File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -88,17 +88,19 @@ try {
8888
8989 Write-Host " bin folder validated successfully."
9090
91- # Create dist folder if not exists
92- $distPath = Join-Path (Split-Path (Split-Path $binPath - Parent) - Parent) " dist"
93- if (-not (Test-Path $distPath )) {
94- New-Item - Path $distPath - ItemType Directory - ErrorAction Stop | Out-Null
95- Write-Host " Created dist folder at $distPath "
91+ # Create dist/rawBinaryZipped folder if not exists
92+ $distRoot = Join-Path (Split-Path (Split-Path $binPath - Parent) - Parent) " dist"
93+ $rawBinaryZippedPath = Join-Path $distRoot " rawBinaryZipped"
94+
95+ if (-not (Test-Path $rawBinaryZippedPath )) {
96+ New-Item - Path $rawBinaryZippedPath - ItemType Directory - ErrorAction Stop | Out-Null
97+ Write-Host " Created rawBinaryZipped folder at $rawBinaryZippedPath "
9698 } else {
97- Write-Host " dist folder already exists at $distPath "
99+ Write-Host " rawBinaryZipped folder already exists at $rawBinaryZippedPath "
98100 }
99101
100102 # Compress bin folder to ZIP
101- $zipFile = Join-Path $distPath " bin.zip"
103+ $zipFile = Join-Path $rawBinaryZippedPath " bin.zip"
102104
103105 if (Test-Path $zipFile ) { Remove-Item $zipFile - Force }
104106 try {
You can’t perform that action at this time.
0 commit comments