Skip to content

Commit

Permalink
fixup: create folders before use
Browse files Browse the repository at this point in the history
  • Loading branch information
coloursofnoise committed Aug 30, 2021
1 parent 0fe1415 commit 22d25e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions azure-pipelines-postbuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ if ($LIB_STRIPPED -eq "/lib-stripped") {

$ZIP="$LIB_STRIPPED/build/build.zip"

Write-Output "Creating lib-stripped artifact directories"
Remove-Item -ErrorAction Ignore -Recurse -Force -Path $LIB_STRIPPED
New-Item -ItemType "directory" -Path $LIB_STRIPPED
New-Item -ItemType "directory" -Path $LIB_STRIPPED/build

Write-Output "Installing SteamRE DepotDownloader"
Invoke-WebRequest -URI 'https://github.com/SteamRE/DepotDownloader/releases/download/DepotDownloader_2.4.4/depotdownloader-2.4.4.zip' -OutFile "$env:AGENT_TEMPDIRECTORY/depotdownloader.zip"
Expand-Archive -Path "$env:AGENT_TEMPDIRECTORY/depotdownloader.zip" -Destination $env:AGENT_TOOLSDIRECTORY
Expand All @@ -41,8 +46,7 @@ dotnet $env:AGENT_TOOLSDIRECTORY/DepotDownloader.dll -app 504230 -beta opengl -u

Write-Output "Applying Everest patch"
Copy-Item -Path "$env:BUILD_ARTIFACTSTAGINGDIRECTORY/main/*" -Destination $LIB_STRIPPED -Recurse
Write-Output "Running Miniinstaller in $LIB_STRIPPED"
Start-Process -FilePath "mono" -ArgumentList "Miniinstaller.exe"
Start-Process -FilePath "mono" -ArgumentList "Miniinstaller.exe" -WorkingDirectory $LIB_STRIPPED

Write-Output "Generating stripped files"
$files = Get-ChildItem -Path $LIB_STRIPPED* -Include *.dll,*.exe
Expand Down

0 comments on commit 22d25e6

Please sign in to comment.