mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
Try only copying the file
This commit is contained in:
parent
108c850168
commit
7def651231
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
6
dist/platforms/windows/entrypoint.ps1
vendored
6
dist/platforms/windows/entrypoint.ps1
vendored
@ -1,11 +1,5 @@
|
|||||||
Get-Process
|
Get-Process
|
||||||
|
|
||||||
# List all files under C:\Users
|
|
||||||
Write-Host "Listing contents of C:\Users"
|
|
||||||
Get-ChildItem -Recurse "C:\Users" | ForEach-Object {
|
|
||||||
Write-Host ($_.FullName)
|
|
||||||
}
|
|
||||||
|
|
||||||
# Copy .upmconfig.toml if it exists
|
# Copy .upmconfig.toml if it exists
|
||||||
if (Test-Path "C:\githubhome\.upmconfig.toml") {
|
if (Test-Path "C:\githubhome\.upmconfig.toml") {
|
||||||
Write-Host "Copying .upmconfig.toml to $Env:USERPROFILE\.upmconfig.toml"
|
Write-Host "Copying .upmconfig.toml to $Env:USERPROFILE\.upmconfig.toml"
|
||||||
|
@ -100,9 +100,6 @@ class Docker {
|
|||||||
dockerIsolationMode,
|
dockerIsolationMode,
|
||||||
} = parameters;
|
} = parameters;
|
||||||
|
|
||||||
// 🔥 Add log for runnerTempPath
|
|
||||||
console.log(`🛠️ [DockerCommand] runnerTempPath = ${runnerTempPath}`);
|
|
||||||
|
|
||||||
const githubHome = path.join(runnerTempPath, '_github_home');
|
const githubHome = path.join(runnerTempPath, '_github_home');
|
||||||
if (!existsSync(githubHome)) mkdirSync(githubHome);
|
if (!existsSync(githubHome)) mkdirSync(githubHome);
|
||||||
|
|
||||||
@ -111,7 +108,6 @@ class Docker {
|
|||||||
--rm \
|
--rm \
|
||||||
${ImageEnvironmentFactory.getEnvVarString(parameters)} \
|
${ImageEnvironmentFactory.getEnvVarString(parameters)} \
|
||||||
--env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \
|
--env GITHUB_WORKSPACE=c:${dockerWorkspacePath} \
|
||||||
--env UPM_GLOBAL_CONFIG_FILE="C:/githubhome/.upmconfig.toml" \
|
|
||||||
${gitPrivateToken ? `--env GIT_PRIVATE_TOKEN="${gitPrivateToken}"` : ''} \
|
${gitPrivateToken ? `--env GIT_PRIVATE_TOKEN="${gitPrivateToken}"` : ''} \
|
||||||
--volume "${workspace}":"c:${dockerWorkspacePath}" \
|
--volume "${workspace}":"c:${dockerWorkspacePath}" \
|
||||||
--volume "${githubHome}":"C:/githubhome" \
|
--volume "${githubHome}":"C:/githubhome" \
|
||||||
@ -130,10 +126,6 @@ class Docker {
|
|||||||
${image} \
|
${image} \
|
||||||
powershell c:/steps/entrypoint.ps1`;
|
powershell c:/steps/entrypoint.ps1`;
|
||||||
|
|
||||||
// 🔥 Add log for final dockerCommand
|
|
||||||
console.log('🛠️ [DockerCommand] Final Windows Docker command:');
|
|
||||||
console.log(dockerCommand);
|
|
||||||
|
|
||||||
return dockerCommand;
|
return dockerCommand;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user