Skip to content

Commit 2ad7956

Browse files
Update distributionHelper.ps1: use dist/rawBinaryZipped folder for binary distribution
1 parent 991cd6b commit 2ad7956

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tool/distributionHelper.ps1

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)