Fix project path windows
parent
0243fe1fb8
commit
4a8ee6f820
|
|
@ -13,6 +13,7 @@ LABEL "maintainer"="Webber Takken <webber@takken.io>"
|
||||||
COPY default-build-script c:/UnityBuilderAction
|
COPY default-build-script c:/UnityBuilderAction
|
||||||
COPY platforms/windows/steps c:/steps
|
COPY platforms/windows/steps c:/steps
|
||||||
COPY platforms/windows/entrypoint.ps1 c:/entrypoint.ps1
|
COPY platforms/windows/entrypoint.ps1 c:/entrypoint.ps1
|
||||||
|
COPY BlankProject c:/BlankProject
|
||||||
RUN dir
|
RUN dir
|
||||||
|
|
||||||
ENTRYPOINT ["powershell", "c:/entrypoint.ps1"]
|
ENTRYPOINT ["powershell", "c:/entrypoint.ps1"]
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,3 @@
|
||||||
#
|
|
||||||
# Create directory for license activation
|
|
||||||
#
|
|
||||||
|
|
||||||
ACTIVATE_LICENSE_PATH="$($Env:GITHUB_WORKSPACE)/_activate-license"
|
|
||||||
mkdir $ACTIVATE_LICENSE_PATH
|
|
||||||
|
|
||||||
# Activate Unity
|
# Activate Unity
|
||||||
& "c:\steps\activate.ps1"
|
& "c:\steps\activate.ps1"
|
||||||
|
|
||||||
|
|
@ -20,9 +13,3 @@ regsvr32 C:\ProgramData\Microsoft\VisualStudio\Setup\x64\Microsoft.VisualStudio.
|
||||||
|
|
||||||
# Free the seat for the activated license
|
# Free the seat for the activated license
|
||||||
& "c:\steps\return_license.ps1"
|
& "c:\steps\return_license.ps1"
|
||||||
|
|
||||||
#
|
|
||||||
# Remove license activation directory
|
|
||||||
#
|
|
||||||
|
|
||||||
Remove-Item -Path $ACTIVATE_LICENSE_PATH -Recurse
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
Push-Location $ACTIVATE_LICENSE_PATH
|
|
||||||
|
|
||||||
# Activates Unity
|
# Activates Unity
|
||||||
& "C:\Program Files\Unity\Hub\Editor\$Env:UNITY_VERSION\Editor\Unity.exe" -batchmode -quit -nographics `
|
& "C:\Program Files\Unity\Hub\Editor\$Env:UNITY_VERSION\Editor\Unity.exe" -batchmode -quit -nographics `
|
||||||
-username $Env:UNITY_EMAIL `
|
-username $Env:UNITY_EMAIL `
|
||||||
-password $Env:UNITY_PASSWORD `
|
-password $Env:UNITY_PASSWORD `
|
||||||
-serial $Env:UNITY_SERIAL `
|
-serial $Env:UNITY_SERIAL `
|
||||||
|
-projectPath "c:/BlankProject" `
|
||||||
-logfile | Out-Host
|
-logfile | Out-Host
|
||||||
|
|
||||||
Pop-Location
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
Push-Location $ACTIVATE_LICENSE_PATH
|
|
||||||
|
|
||||||
# Return the active Unity license
|
# Return the active Unity license
|
||||||
& "C:\Program Files\Unity\Hub\Editor\$Env:UNITY_VERSION\Editor\Unity.exe" -batchmode -quit -nographics `
|
& "C:\Program Files\Unity\Hub\Editor\$Env:UNITY_VERSION\Editor\Unity.exe" -batchmode -quit -nographics `
|
||||||
-username $Env:UNITY_EMAIL `
|
-username $Env:UNITY_EMAIL `
|
||||||
-password $Env:UNITY_PASSWORD `
|
-password $Env:UNITY_PASSWORD `
|
||||||
-returnlicense `
|
-returnlicense `
|
||||||
|
-projectPath "c:/BlankProject" `
|
||||||
-logfile | Out-Host
|
-logfile | Out-Host
|
||||||
|
|
||||||
Pop-Location
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue