mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00

* Update workflows, bump image version for docker * Fix Unity pathing and cleanup scripts * Fix Unity pathing * Fix activation scripts
28 lines
795 B
PowerShell
28 lines
795 B
PowerShell
Get-Process
|
|
Start-Sleep -Seconds 3
|
|
|
|
# Import any necessary registry keys, ie: location of windows 10 sdk
|
|
# No guarantee that there will be any necessary registry keys, ie: tvOS
|
|
Get-ChildItem -Path c:\regkeys -File | ForEach-Object {reg import $_.fullname}
|
|
|
|
# Register the Visual Studio installation so Unity can find it
|
|
regsvr32 C:\ProgramData\Microsoft\VisualStudio\Setup\x64\Microsoft.VisualStudio.Setup.Configuration.Native.dll
|
|
|
|
# Kill the regsvr process
|
|
Get-Process -Name regsvr32 | ForEach-Object { Stop-Process -Id $_.Id -Force }
|
|
|
|
# Setup Git Credentials
|
|
& "c:\steps\set_gitcredential.ps1"
|
|
|
|
# Activate Unity
|
|
& "c:\steps\activate.ps1"
|
|
|
|
# Build the project
|
|
& "c:\steps\build.ps1"
|
|
|
|
# Free the seat for the activated license
|
|
& "c:\steps\return_license.ps1"
|
|
|
|
Start-Sleep -Seconds 3
|
|
Get-Process
|