Warp to Galaxy internal rebrand
This commit is contained in:
@@ -66,53 +66,9 @@ if ($env:GIT_RELEASE_TAG) {
|
||||
Set-Content -Path $VersionMetadataPath -Encoding utf8
|
||||
}
|
||||
|
||||
# Copy channel-gated skills matching the current release channel.
|
||||
$GatedSource = Join-Path (Join-Path $RepoRoot 'resources') 'channel-gated-skills'
|
||||
$DestSkills = Join-Path (Join-Path $DestinationDir 'bundled') 'skills'
|
||||
|
||||
if ($Channel -and (Test-Path $GatedSource -PathType Container)) {
|
||||
Write-Output "Copying channel-gated skills for channel '$Channel'..."
|
||||
|
||||
# Error out if a stable/ gate directory exists.
|
||||
$StableDir = Join-Path $GatedSource 'stable'
|
||||
if (Test-Path $StableDir -PathType Container) {
|
||||
Write-Error "Found a 'stable/' directory in $GatedSource. The stable channel does not use gated skills. Move stable-ready skills to resources/skills/ instead."
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Gate labels ordered from most-inclusive to least-inclusive.
|
||||
$GateOrder = @('dogfood', 'preview')
|
||||
|
||||
# Map the release channel to its gate label.
|
||||
switch ($Channel) {
|
||||
'local' { $Gate = 'dogfood' }
|
||||
'dev' { $Gate = 'dogfood' }
|
||||
'preview' { $Gate = 'preview' }
|
||||
default {
|
||||
Write-Output " Channel '$Channel' has no gated skills, skipping"
|
||||
$Gate = $null
|
||||
}
|
||||
}
|
||||
|
||||
if ($Gate) {
|
||||
# Build the set of included gates (progressive: this gate and all after it).
|
||||
$GateIndex = [array]::IndexOf($GateOrder, $Gate)
|
||||
$IncludedGates = $GateOrder[$GateIndex..($GateOrder.Length - 1)]
|
||||
|
||||
foreach ($GateDir in Get-ChildItem -Path $GatedSource -Directory | Sort-Object Name) {
|
||||
if ($GateDir.Name -notin $IncludedGates) {
|
||||
$Skills = (Get-ChildItem -Path $GateDir.FullName -Directory | Sort-Object Name | ForEach-Object { $_.Name }) -join ', '
|
||||
Write-Output " Skipping gate '$($GateDir.Name)' (channel '$Channel') - would include: $Skills"
|
||||
continue
|
||||
}
|
||||
|
||||
foreach ($SkillDir in Get-ChildItem -Path $GateDir.FullName -Directory | Sort-Object Name) {
|
||||
$Dest = Join-Path $DestSkills $SkillDir.Name
|
||||
Write-Output " Copying gated skill: $($SkillDir.Name) (gate: $($GateDir.Name))"
|
||||
Copy-Item -Path $SkillDir.FullName -Destination $Dest -Recurse -Force
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($Channel -and $Channel -notin @('oss', 'integration')) {
|
||||
Write-Error "Unsupported release channel '$Channel'"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Generate third-party license attribution.
|
||||
@@ -169,9 +125,7 @@ if ($env:SKIP_SETTINGS_SCHEMA -ne '1') {
|
||||
$SchemaCmd += @('--profile', $CargoProfile)
|
||||
}
|
||||
$SchemaCmd += @('--manifest-path', (Join-Path $RepoRoot 'Cargo.toml'), '--bin', 'generate_settings_schema', '--')
|
||||
if ($Channel) {
|
||||
$SchemaCmd += @('--channel', $Channel)
|
||||
}
|
||||
$SchemaCmd += @('--channel', 'oss')
|
||||
$SchemaCmd += $SchemaOutput
|
||||
|
||||
& cargo @SchemaCmd
|
||||
|
||||
Reference in New Issue
Block a user