Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/v7.0.11] Add condition to generate release file in local dev build only #17255

Merged
merged 1 commit into from May 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 14 additions & 12 deletions tools/packaging/packaging.psm1
Expand Up @@ -210,18 +210,20 @@ function Start-PSPackage {
# Copy the default.help.txt so it's part of the package
Copy-Item "$RepoRoot/assets/default.help.txt" -Destination "$Source/en-US" -Force

# Make sure psoptions.json file exists so appropriate files.wsx is generated
$psOptionsPath = (Join-Path -Path $Source "psoptions.json")
if (-not (Test-Path -Path $psOptionsPath)) {
$createdOptionsFile = New-Item -Path $psOptionsPath -Force
Write-Verbose -Verbose "Created psoptions file: $createdOptionsFile"
}

# Make sure _manifest\spdx_2.2\manifest.spdx.json file exists so appropriate files.wxs is generated
$manifestSpdxPath = (Join-Path -Path $Source "_manifest\spdx_2.2\manifest.spdx.json")
if (-not (Test-Path -Path $manifestSpdxPath)) {
$createdSpdxPath = New-Item -Path $manifestSpdxPath -Force
Write-Verbose -Verbose "Created manifest.spdx.json file: $createdSpdxPath"
if (-not $SkipGenerateReleaseFiles -and -not $env:TF_BUILD) {
# Make sure psoptions.json file exists so appropriate files.wsx is generated
$psOptionsPath = (Join-Path -Path $Source "psoptions.json")
if (-not (Test-Path -Path $psOptionsPath)) {
$createdOptionsFile = New-Item -Path $psOptionsPath -Force
Write-Verbose -Verbose "Created psoptions file: $createdOptionsFile"
}

# Make sure _manifest\spdx_2.2\manifest.spdx.json file exists so appropriate files.wxs is generated
$manifestSpdxPath = (Join-Path -Path $Source "_manifest\spdx_2.2\manifest.spdx.json")
if (-not (Test-Path -Path $manifestSpdxPath)) {
$createdSpdxPath = New-Item -Path $manifestSpdxPath -Force
Write-Verbose -Verbose "Created manifest.spdx.json file: $createdSpdxPath"
}
}

# If building a symbols package, we add a zip of the parent to publish
Expand Down