Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Updating BuildPackage.ps1 to remove Scenes Folder (#232)
Browse files Browse the repository at this point in the history
* Removing Unneeded Scenes

* Updating BuildPackage.ps1 after removing Scenes Folder
  • Loading branch information
MSFT-Heba authored and jasonsandlin committed May 1, 2018
1 parent 2b52b2d commit fd7e6ab
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Build/BuildPackage.ps1
Expand Up @@ -78,13 +78,6 @@ if (0)
Write-Host ""
}

Write-Host "Moving Scenes into a temporary folder ..."
$scenesAssetsPath = "Assets\Scenes"
$tempScenesFolder = New-Item (Join-Path $externalFolder 'tempScenes') -type directory -force
Copy-Item $scenesAssetsPath -Destination $tempScenesFolder -ErrorAction SilentlyContinue -recurse
Remove-Item $scenesAssetsPath -recurse
Move-Item (Resolve-Path (Join-Path "Assets" 'Scenes.meta')) -Destination $tempScenesFolder

$exportAssetPath = "Assets"
$logFile = Join-Path $PSScriptRoot BuildPackage.log

Expand Down Expand Up @@ -125,10 +118,6 @@ if (0)
Remove-Item $tempGameSaveFolder -recurse
}

Write-Host "Moving Scenes back into the Scenes folder ..."
Move-Item (Resolve-Path (Join-Path $tempScenesFolder 'Scenes.meta')) -Destination "Assets"
Copy-Item $tempScenesFolder\Scenes -Destination "Assets" -ErrorAction SilentlyContinue -recurse
Remove-Item $tempScenesFolder -recurse

if(!$unityProcess.HasExited)
{
Expand Down

0 comments on commit fd7e6ab

Please sign in to comment.