mirror of
https://github.com/SK8-ENGINE/skate-3-rust-engine.git
synced 2026-10-26 19:47:44 +00:00
Bundle only Skyline in the installed mods and fresh releases
This commit is contained in:
1 parent
dfd3e543c0
commit
60efdef866
17 files changed
+9
-1498
No files matched your search
@@ -129,6 +129,15 @@ try {
|
||||
pipeline_equivalence = $pipelineEquivalence
|
||||
} | ConvertTo-Json -Depth 6 | Set-Content -LiteralPath "$stage/release.json" -Encoding utf8
|
||||
Copy-Item -LiteralPath "$stage/release.json" -Destination (Join-Path $ProjectRoot 'target/release.json')
|
||||
# Seed fresh downloads with Skyline only. Mods stay outside release.json:
|
||||
# the updater deliberately never owns or overwrites a user's mod packages.
|
||||
$bundledModFiles = @(& git ls-files -- 'mods/Skyline_Drive_Mod/')
|
||||
if ($LASTEXITCODE -ne 0 -or $bundledModFiles.Count -eq 0) { throw 'Tracked Skyline package missing' }
|
||||
foreach ($relative in $bundledModFiles) {
|
||||
$destination = Join-Path $stage $relative
|
||||
New-Item -ItemType Directory -Path (Split-Path -Parent $destination) -Force | Out-Null
|
||||
Copy-Item -LiteralPath (Join-Path $ProjectRoot $relative) -Destination $destination
|
||||
}
|
||||
$zip = Join-Path $ProjectRoot 'target/skate3rust-windows-x64.zip'
|
||||
Compress-Archive -LiteralPath $stage -DestinationPath $zip -Force
|
||||
(Get-Sha256Hex $zip) + ' skate3rust-windows-x64.zip' |
|
||||
|
||||
Reference in new issue
Block a user