Optimize prepared asset package v2
This commit is contained in:
parent
d123c4b67c
commit
0dd966f3a0
28 changed files with 1277 additions and 106 deletions
|
|
@ -3,6 +3,7 @@ param(
|
|||
[string]$Repository = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path,
|
||||
[string]$Account = $env:ACDREAM_TEST_USER,
|
||||
[string]$Password = $env:ACDREAM_TEST_PASS,
|
||||
[string]$PreparedAssetPath,
|
||||
[switch]$SkipBuild,
|
||||
[switch]$Uncapped,
|
||||
[switch]$DenseTown,
|
||||
|
|
@ -748,6 +749,13 @@ $videoControllers = @(Get-CimInstance Win32_VideoController -ErrorAction Silentl
|
|||
})
|
||||
|
||||
$env:ACDREAM_DAT_DIR = "$env:USERPROFILE\Documents\Asheron's Call"
|
||||
if (-not [string]::IsNullOrWhiteSpace($PreparedAssetPath)) {
|
||||
$resolvedPreparedAssetPath = [IO.Path]::GetFullPath($PreparedAssetPath)
|
||||
if (-not (Test-Path -LiteralPath $resolvedPreparedAssetPath -PathType Leaf)) {
|
||||
throw "prepared asset package not found: $resolvedPreparedAssetPath"
|
||||
}
|
||||
$env:ACDREAM_PAK_PATH = $resolvedPreparedAssetPath
|
||||
}
|
||||
$env:ACDREAM_LIVE = '1'
|
||||
$env:ACDREAM_TEST_HOST = '127.0.0.1'
|
||||
$env:ACDREAM_TEST_PORT = '9000'
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ param(
|
|||
[string]$Repository = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path,
|
||||
[string]$Account = $env:ACDREAM_TEST_USER,
|
||||
[string]$Password = $env:ACDREAM_TEST_PASS,
|
||||
[string]$PreparedAssetPath,
|
||||
[string]$AceLogPath = 'C:\ACE\Server\ACE_Log.txt',
|
||||
[switch]$SkipBuild,
|
||||
[int]$SessionTimeoutSeconds = 420,
|
||||
|
|
@ -559,6 +560,13 @@ $renderPackGate = New-ConnectedRenderPackGateState `
|
|||
-Root $root `
|
||||
-Preset $RenderPackPreset `
|
||||
-SettingOverrides $RenderPackSettingOverrides
|
||||
if (-not [string]::IsNullOrWhiteSpace($PreparedAssetPath)) {
|
||||
$resolvedPreparedAssetPath = [IO.Path]::GetFullPath($PreparedAssetPath)
|
||||
if (-not (Test-Path -LiteralPath $resolvedPreparedAssetPath -PathType Leaf)) {
|
||||
throw "prepared asset package not found: $resolvedPreparedAssetPath"
|
||||
}
|
||||
$env:ACDREAM_PAK_PATH = $resolvedPreparedAssetPath
|
||||
}
|
||||
$sessionConfigPath = New-ConnectedGraphicalSessionConfig `
|
||||
-State $renderPackGate `
|
||||
-Account $Account
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue