Готова функция установки сценария

This commit is contained in:
2025-08-12 01:00:40 +07:00
parent 5b877693da
commit efb7c0520c
2 changed files with 28 additions and 6 deletions

12
install_scenario.ps1 Normal file
View File

@@ -0,0 +1,12 @@
$fileId = "1eEBGmfh7Gu2g_KQoCiVg8XsRM9m_-DZB"
$baseUrl = "https://drive.google.com/uc?export=download&id=$fileId"
$rimworldPath = Join-Path $env:USERPROFILE "AppData\LocalLow\Ludeon Studios\RimWorld by Ludeon Studios"
$rimworldConfigPath = Join-Path $rimworldPath "Scenarios\RuinShip.rsc"
$response = Invoke-WebRequest -Uri $baseUrl -SessionVariable session
Write-Host "[INFO] Downloading scenario..."
Invoke-WebRequest -Uri $baseUrl -OutFile $rimworldConfigPath
Write-Host "[INFO] RuinShip.rsc was successfully downloaded." -ForegroundColor Green